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.
Starting on an existing userdir; it has been used over two different checkouts on my disk. Currently there is no open module project; in the preceding session I closed all open projects, opened openide in the fresh checkout I'm going to use for the tutorial on tuesday, closed it, opened contrib/hexedit and shut down. On restart, the main window did not repaint for about 3 minutes after first being shown. Filing against apisupport based on what the AWT thread is doing in the attached thread dump.
Created attachment 23383 [details] thread dump
Not much I can do about it now - your Recent Projects list contains some netbeans.org projects, and they are slow to load because they need to scan for available modules, and your disk is probably slow - but will think about it.
Created attachment 23408 [details] A couple optimizations that might marginally help
Created attachment 23409 [details] What all it's parsing on startup
I can apply a patch similar to yours (with some changes). Maybe it will help somewhat. What would make a difference is to parse every project.xml in the ModuleList pass using SAX rather than DOM, but that would require a fair amount of work.
If it can parse *that* many files at some random time, possibly blocking EQ, sounds like you'll need to do that eventually. Perhaps some progress bar usage, though best would just be to make it fast enough that it's not needed. FWIW, I actually tried out the XML module's action to generate a SAX parser from a DTD. Not too bad.
The basic problem is that currently ModuleList scanning has to be done as part of a project's constructor; at a minimum, it has to be done by the time a project is opened, because the list is critical info in constructing the classpath, which has to be known when the project is opened so that the global classpath registry (used for refactoring etc.) gets updated correctly. And some kinds of code currently block EQ loading projects. We could try opening old projects on IDE restart asynch w/ a progress bar. Would help appearance without really changing anything. FWIW I can't reproduce any delays close to 3 minutes; I guess your machine is slow. Not sure exactly which aspect of it, but probably Java -> filesystem access.
committed Up-To-Date 1.10 apisupport/project/src/org/netbeans/modules/apisupport/project/universe/ModuleList.java
*** Issue 61737 has been marked as a duplicate of this issue. ***
*** Issue 65004 has been marked as a duplicate of this issue. ***
Issue #59550 fixes should have solved this, I guess. *** This issue has been marked as a duplicate of 59550 ***