I'll check into that - thanks!

In this case, should we take the shotgun approach and just use intern on the custom XML properties files? Do you know of any disadvantage to using intern too much?

-Adrian

Adam Heath wrote:
Adrian Crum wrote:
I wonder how that could be tested.

Go look into jhat and jconsole, and be sure to use java 1.6.  With java
1.6, you can attach jconsole to an already running java instance, and
get a binary memory dump.  Then, using jhat, you can, with much
diligence, drill down to find how large the character array is for a
particular string.

It's how I knew that doing String.intern() on the data read from the
entitymodel.xml files would be useful.  See svn version 585838.

Reply via email to