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 51403

Summary: Every file record in VcsCache holds java.io.File refering to cache data file
Product: obsolete Reporter: _ rkubacki <rkubacki>
Component: vcscoreAssignee: issues@obsolete <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P3 Keywords: PERFORMANCE
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ rkubacki 2004-11-11 09:18:23 UTC
Build from Nov 10, JDK1.5.0.

org.netbeans.modules.vcscore.cache.impl.VcsCacheFile$VcsPersistentData
has field of type java.io.File that refers to
netbeans.cmd.cache file. These objects are often
big as they keep absolute path to these files and
have a lot of duplicates. 

For my project that is stored in
/usr/local/home/radim/fakeNetbeans every File
object retains at least 160 bytes (path ending
with CVS/netbeans.cmd.cache, array, String and
File overhead).
Comment 1 Martin Entlicher 2004-11-11 10:19:25 UTC
This is being reimplemented into 4.1.
Comment 2 _ pkuzel 2004-12-21 15:23:31 UTC
Redesigned cache does not keep any io.File.