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 - 150K memory reduction in bootstrap (7500->4800 String objects)
Summary: 150K memory reduction in bootstrap (7500->4800 String objects)
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-06-25 15:27 UTC by Vladimir Voskresensky
Modified: 2015-01-29 19:22 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
intern some sharable strings (2.02 KB, patch)
2012-06-25 15:27 UTC, Vladimir Voskresensky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.