Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6077

Groovy loads half of Micronaut library on each completion

    XMLWordPrintableJSON

Details

    Description

      Transformations / visitors are loaded from user project's libraries to participate on groovy compilation. It seems that classes of those visitors are loaded for each parse operation anew, which makes the parser startup longer.

      Attaching a report (placed Logger.info() in TransformationLoader.findClass()) - about 570 classes are loaded after each keystroke + parse. 

      Mitigation step 1: have the loaded classes cached based on set of library URLs used by the project (cache the parent classloader).

      Mitigation step 2: consider to disable InjectTransform etc. from Micronaut ...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sdedic Svatopluk Dedic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m