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 - String duplicities in ProxyClassLoader
Summary: String duplicities in ProxyClassLoader
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE, SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2004-09-14 15:10 UTC by Petr Nejedly
Modified: 2008-12-22 20:43 UTC (History)
0 users

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 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.