Re: Duplicate String values

2012-05-03 Thread Christopher Schultz
Konstantin, On 5/1/12 11:04 AM, Christopher Schultz wrote: On 4/28/12 8:58 PM, Konstantin Kolinko wrote: I am OK with your proposal, but I do not expect much savings from getting rid of those duplicates. Does YouKit show some estimates? It did, but I closed it long ago so I'll have to

Re: Duplicate String values

2012-05-01 Thread Christopher Schultz
returned by class.getName() as well as field and method names should be already interned by JVM. So instead of String.intern() it should be possible to call class.getName(). :/ That's what I would have expected, but I can see logs of duplicate String values (like java.lang.String for instance

Re: Duplicate String values

2012-04-28 Thread Konstantin Kolinko
2012/4/27 Christopher Schultz ch...@christopherschultz.net: All, I've been doing some memory profiling on my webapp to see where I can reduce our memory footprint a bit by combining equivalent objects. YourKit has some nice utilities to look for duplicate objects -- especially Strings. I

Re: Duplicate String values

2012-04-27 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/04/2012 01:37, Christopher Schultz wrote: All, I've been doing some memory profiling on my webapp to see where I can reduce our memory footprint a bit by combining equivalent objects. YourKit has some nice utilities to look for duplicate

Duplicate String values

2012-04-26 Thread Christopher Schultz
All, I've been doing some memory profiling on my webapp to see where I can reduce our memory footprint a bit by combining equivalent objects. YourKit has some nice utilities to look for duplicate objects -- especially Strings. I can see that the string java.lang.String has lots of duplicates.