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 50348 - Expensive job performed during IDE start in J2SEPlatformModule.restored
Summary: Expensive job performed during IDE start in J2SEPlatformModule.restored
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 49990
  Show dependency tree
 
Reported: 2004-10-13 14:06 UTC by _ rkubacki
Modified: 2006-03-24 09:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch to avoid DTD reading (2.79 KB, patch)
2004-10-13 15:46 UTC, _ rkubacki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-10-13 14:06:39 UTC
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).
Comment 1 _ rkubacki 2004-10-13 14:10:45 UTC
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.
Comment 2 _ rkubacki 2004-10-13 15:46:33 UTC
Created attachment 18265 [details]
patch to avoid DTD reading
Comment 3 _ rkubacki 2004-10-13 15:47:32 UTC
We can also avoid computing of display name of platform in constructor.
Comment 4 Tomas Zezula 2004-10-13 17:02:26 UTC
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
Comment 5 Jiri Prox 2005-07-12 13:26:03 UTC
Radime, can you verify this issue, please? Thanks.
Comment 6 _ rkubacki 2005-08-31 15:30:02 UTC
v