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.
Build: NetBeans IDE Dev (Build 200910070250) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, i386 User comments: Maximum slowness yet reported was 7953 ms, average is 5958
Hanzi, I am sorry, but this is caused by: http://hg.netbeans.org/main-silver?cmd=changeset;node=b90be0d4ad5e ElementNode$Description.getFileObject() calls SourceUtils.getFile() for inherited members and this method is not very fast and should not be called synchronously (esp. not for a lot of nodes). I do not see a nice solution to this, which would not regress (too much) on issue #168738 (even the short one-file scans can cause ElementOpen to jump to the beginning of file instead of correct offset) and issue #160478. The most reasonable solution I see is to make ElementOpen.open wait a little while (1s?) for the scan to finish. If the scan would finish quickly, exact offset would be used. Otherwise, offset 0 would be used. Possibly, the little while could be slightly longer if the EO.open would be invoked outside AWT. Also, navigator should probably use RunOffAWT, but that currently would not solve #168738. Any opinions?
I have no other solution for NB 6.8. I am playing with transactional lucene index and possibility to run background scan parallel to TaskProcessor, but it will take a time....
*** Issue 174218 has been marked as a duplicate of this issue. ***
I going to try to implement this.
*** Issue 174140 has been marked as a duplicate of this issue. ***
*** Issue 174219 has been marked as a duplicate of this issue. ***
When scan is in progress, ElementOpen.open waits for 1s/2s (AWT/non-AWT) now: http://hg.netbeans.org/jet-main/rev/7712dbf61d62 Lets see how this is going to work.
As soon as new build is available I will try it. Thanks for your effort.
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7712dbf61d62 User: Jan Lahoda <jlahoda@netbeans.org> Log: #168738, #174143: if indexing is running, ElementOpen.open should wait for a while before giving up and jumping to offset 0. Navigator should not call Description.getFileObject/SourceUtils.getFile synchronously for all nodes.
Looks pretty good now. v. 200910140201
Created attachment 90923 [details] nps snapshot