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 53774 - Expensive init of CharsetMapping class
Summary: Expensive init of CharsetMapping class
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 53751
  Show dependency tree
 
Reported: 2005-01-20 17:34 UTC by _ rkubacki
Modified: 2005-03-24 18:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2005-01-20 17:34:30 UTC
static initializer of this class is executed
during startup and takes a lot of time. It
initializes all available charset.
Comment 1 _ rkubacki 2005-01-20 17:40:23 UTC
Also SunDeploymentFactory static initializer is visible in profiler
output thought it takes much slower time.
Comment 2 _ ludo 2005-01-20 17:45:56 UTC
we have 2 classes like that in 2 packages.... Please give the FQN
Comment 3 _ rkubacki 2005-01-20 17:57:24 UTC
org.netbeans.modules.j2ee.sun.api.CharsetMapping
Comment 4 _ ludo 2005-03-22 22:13:46 UTC
Rajeshwar, talk to me for this one: I can explain a possible fix, then  you
implement it.
Thanks,
Comment 5 Rajeshwar Patil 2005-03-24 18:07:21 UTC
Changes to do lazy initialization.

Files Modified:
     org/netbeans/modules/j2ee/sun/api/CharsetMapping.java
     new revision: 1.2; previous revision: 1.1