**DONOTDELETE**
(Unregistered)
12/18/03 05:29 AM
Real live experience

3 months ago on Java 1.4.2 I had a situation where I needed to analyze highly non-normalized data with the inmem db hypersonic, to save memory I builded intern() on all strings being inserted into the database to save memory, the result was I could load less data than without intern() being used. (I now use a hashmap to make all same strings one instance, which works fine for memory usage reduction)
BTW one rare thing I noticed that the interned strings are not visible as memory being used by the java process on windows (normal heap string usage is visible as more memory being used by java process)



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.