sdedic opened a new pull request #3165:
URL: https://github.com/apache/netbeans/pull/3165


   This PR adds some performance counters and hacks that allow individual 
Groovy compiler's phases and visitors to be measured during parsing. Statistics 
are printed at the end of each parsing task and in case of indexing, summary 
and a per-file averages are printed after root's indexing completes.
   The performance logs are enabled by setting 
`org.netbeans.modules.groovy.editor.compiler.PerfData` loglevel to `FINER` or 
more.
   
   Next, the PR changes resource loading for Groovy:
   - the resource is loaded using NB `ClassPath` (which uses FileSystems) 
rather than through `ClassPath.createClassLoader()`, which seems to be very 
slow.
   - java classes are loaded from java indexer caches: this speeds up loading 
referenced classes from the project itself
   
   As a result, the Groovy parsing is **about 5-10 times faster** (!), but 
there are still some Java parser invocations, so the overall indexer speedup is 
about 2-3x.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to