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.
Acc. to OptimizeIt, when closing a lot of projects (20 or so), almost 9% of CPU is spent in FileObject.getURL, almost all of which is from CP.aP -> OPL.close -> OPL.saveProjectList -> OPL.projects2URLs -> FO.gURL Now this is quadratic time! Each project is closed individually, and each time, the whole project list is saved again, meaning each (remaining) project has to have its URL checked. Would be faster to just have a method OPL.close(Project[]).
Thanks for finding it. It is much fatster now. Checking in projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java,v <-- OpenProjectList.java new revision: 1.25; previous revision: 1.24 done Processing log script arguments... More commits to come... Checking in projectui/src/org/netbeans/modules/project/ui/actions/CloseProject.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/CloseProject.java,v <-- CloseProject.java new revision: 1.7; previous revision: 1.6 done
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.