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.
When you choose a folder in the Folders panel of Open Project dialog, Project Name and list of Required Projects have to be populated. Currently it is done in AWT thread, freezing the UI for many seconds if this project has many required projects (e.g. refactoring project).
The population of the required projects should be pretty fast so there should be no need for doing it in different thread. As you are the performance team please add some more data about what was the IDE doing during the AWT was frozen. (Btw. I can't reproduce it) This might be a more serious bug, which has to be fixed differently.
Probebly better to reassign to people than groups.
I can't reproduce a delay of more than a second even for NB module projects with a lot of deps. Anyway if it is true only for NB module projects and not for e.g. j2seprojects then we don't care much.
Ran CPU profiling. Going to attach two pictures with invocation trees, one from dynamic instrumentation measurement method, another one from 1ms sampling measurement method. It shows that ProjectChooserAccessory.getProject(), ProjectChooserAccessory.addSubprojects() and ProjectChooserAccessory.fillSubProjectsModel() are the methods where the most time is spent. Which does not surprise anyone I guess. :o) Anyway not sure if these methods (and/or the methods these call) can be made faster. So, if nothing else, at least hour-glass cursor should be used...
Created attachment 15098 [details] 1ms sampling
Created attachment 15099 [details] 1ms sampling (the other attachment is in fact dynamic instrumentataion!)
According to the instrumented log at least, most of the time is spent in apisupport/project-specific methods, which do some things that are more complex than j2seproject, e.g. loading a display name from bundle, loading modules.xml, etc. So I'm not convinced this is a serious problem unless the delay is also noticeable with j2seproject's, for which no data was provided. Of course, if it is straightforward to do the subproject population asynch anyway, we may as well, to better handle slow-loading project types.
Should be better now.
Works as expected now. Thanks.