This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The attached profiler snapshot shows that a lot of time is consumed by creating WhereUsedElement/ElementGrip instances. It takes same time as javac's parsing and attributing. There are translations TreePathHandle -> TreePath that involve the NetBeans's java lexer needlessly. ElementHandle seems to be suitable replacement here. Another place starting the java lexer is ElementHeaders.getHeader(). As the usages nodes require only names of class members, Element.getSimpleName should be sufficient here.
Created attachment 87236 [details] sna
Created attachment 87238 [details] snapshot of FindTask
With patched sources I am getting 30-40% improvement for the jEdit query. In case of DBObject it is a bit worse as it reaches the default memory limit and GC takes place.
fixed as jet-main 0a433c7a7114 Pavle could you verify it please?
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0a433c7a7114 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #171652: performance fix not to start java lexer