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 49010

Summary: String duplicities in ProxyClassLoader
Product: platform Reporter: Petr Nejedly <pnejedly>
Component: -- Other --Assignee: Petr Nejedly <pnejedly>
Status: CLOSED FIXED    
Severity: blocker Keywords: PERFORMANCE, SIMPLEFIX
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Nejedly 2004-09-14 15:10:43 UTC
domainsByPackage caches using a String key, which
is generated as a substring from the first-used
class file name. As each of the loaders builds its
own cache and as the file names are constructed on
the fly, duplicate char arrays containing the
names of commonly used classes (like
"java/beans/PropertyChangeSupport.class" are held
many times.
~200kB kan be spared.
Comment 1 Petr Nejedly 2004-09-14 16:09:02 UTC
Fixed
core/bootstrap/src/org/netbeans/ProxyClassLoader.java,v1.12
Comment 2 Petr Nejedly 2004-09-14 16:11:16 UTC
Verified using Insane. Really spares nearly 200kB, 150kB on char[],
40kB on String instances.