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.

Bug 48719

Summary: CloseProjects.actionPerformed slow for many projects
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic InfrastructureAssignee: Petr Hrebejk <phrebejk>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P3 Keywords: PERFORMANCE
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Jesse Glick 2004-09-08 19:20:50 UTC
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
Comment 1 Petr Hrebejk 2004-09-09 15:00:24 UTC
Thanks for finding it. It is much fatster now.

Checking in
new revision: 1.25; previous revision: 1.24
Processing log script arguments...
More commits to come...
Checking in
new revision: 1.7; previous revision: 1.6
Comment 2 Marian Mirilovic 2005-12-20 15:50:27 UTC
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.