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.
org.netbeans.modules.project.libraries iterates all library providers during IDE start. This takes ~550 ms of 35 seconds on my P4/2GHz/1GB machine.
Created attachment 18096 [details] patch to not validate
If we do not validate we can save about 20%. Part is entity catalog init and second is loading of DTD and validation. It seems that EntityCatalog.getDefault is not taking time here so the time is probably really saved.
Patch looks good as far as behavior goes. The comment "//the code was generated according DTD" [sic] doesn't seem to be describing anything useful and could be removed. Since the patch would mean that the "resolver" param to the LibraryDeclarationParser would always be null anyway, the param should be removed, as well as the field it initializes, and the tests for it being non-null. Also please just delete obsolete code rather than commenting it out - makes the patch easier to read as well as the source code.
I've applied Radim's patch and fixed Jesse's comments. Checking in src/org/netbeans/modules/project/libraries/LibrariesStorage.java; /cvs/projects/libraries/src/org/netbeans/modules/project/libraries/LibrariesStorage.java,v <-- LibrariesStorage.java new revision: 1.14; previous revision: 1.13 done Checking in src/org/netbeans/modules/project/libraries/LibraryDeclarationParser.java; /cvs/projects/libraries/src/org/netbeans/modules/project/libraries/LibraryDeclarationParser.java,v <-- LibraryDeclarationParser.java new revision: 1.3; previous revision: 1.2 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.