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.
j2seplatform module reads user properties file and definition of platforms to check if Java specification version matches to version of javac source and target settings. This is pretty expensive operations that takes ~450 ms from 20s of startup time on my machine (Dell notebook P4/2GHz/1GB RAM, linux 2.4.8, JDK1.5.0).
possible improvement is to avoid resolving of DTD and supply empty content instead of stream with DTD. This save 20-30% of module install time thought I am not sure what part is looking for default entity resolver and what is the reading of DTD.
Created attachment 18265 [details] patch to avoid DTD reading
We can also avoid computing of display name of platform in constructor.
Checking in j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/DefaultPlatformImpl.java; /cvs/java/j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/DefaultPlatformImpl.java,v <-- DefaultPlatformImpl.java new revision: 1.8; previous revision: 1.7 done Checking in j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformImpl.java; /cvs/java/j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformImpl.java,v <-- J2SEPlatformImpl.java new revision: 1.11; previous revision: 1.10 done Checking in j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/PlatformConvertor.java; /cvs/java/j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/PlatformConvertor.java,v <-- PlatformConvertor.java new revision: 1.11; previous revision: 1.10 done Processing log script arguments... More commits to come... Checking in platform/src/org/netbeans/api/java/platform/JavaPlatformManager.java; /cvs/java/platform/src/org/netbeans/api/java/platform/JavaPlatformManager.java,v <-- JavaPlatformManager.java new revision: 1.9; previous revision: 1.8 done
Radime, can you verify this issue, please? Thanks.
v