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 nbms-and-javadoc-3528-on-090714) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows XP, 5.1, x86 Maximal alredy reported slowness was 24141 ms, average is 11150
Created attachment 85140 [details] nps snapshot
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=153726
Hard to identify who's fault this is. EditorRepository gets focusGained, calls RepositoryUpdater and it blocks in java.io via FileSystems. Reassigning to parsing API as it could easy reschedule its update to other thread than AWT, I guess.
Maybe we should simply defer all work associated with handling an event to the dedicated thread. Currently there are some initial checks being done to make sure that we don't schedule high number of tasks that immediately finish. The other way of dealing with this would be to cache more information about the roots themselves (eg. their FileObject). This would minimize the number of URL <-> FileObject translations, which is what seems to be slow according to the attached profiler snapshot.
Still the same problem with getOwningSourceRoot being slow. This should now be much better after fixing #169864. *** This issue has been marked as a duplicate of 169864 ***