Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 214726 - 150K memory reduction in bootstrap (7500->4800 String objects)
150K memory reduction in bootstrap (7500->4800 String objects)
Status: NEW
Product: platform
Classification: Unclassified
Component: Module System
All All
: P3 (vote)
Assigned To: Tomas Hurka
Depends on:
  Show dependency treegraph
Reported: 2012-06-25 15:27 UTC by Vladimir Voskresensky
Modified: 2015-01-29 19:22 UTC (History)
1 user (show)

See Also:

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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo