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 214726

Summary: 150K memory reduction in bootstrap (7500->4800 String objects)
Product: platform Reporter: Vladimir Voskresensky <vv159170>
Component: Module SystemAssignee: Tomas Hurka <thurka>
Status: NEW ---    
Severity: normal CC: jtulach
Priority: P3 Keywords: PERFORMANCE
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: intern some sharable strings

Description Vladimir Voskresensky 2012-06-25 15:27:20 UTC
Created attachment 121306 [details]
intern some sharable strings

Attached patch reduces memory consumption by removing 1700 duplicated strings (build number, version number, some module names)
Comment 1 Vladimir Voskresensky 2012-06-25 16:18:49 UTC
(In reply to comment #0)
> removing 1700 duplicated strings
I meant minus 2700 strings
Comment 2 Jaroslav Tulach 2012-11-23 07:50:29 UTC
Does not the interning have a negative impact on startup time? If not, you can apply it.
Comment 3 Vladimir Voskresensky 2015-01-29 19:22:05 UTC
intern() is not recommended, because it consume pool used by VM itself.