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 ha

Re: Duplicate String values

2012-05-01 Thread Christopher Schultz
>> those strings are probably already interned by all the RTTI >> infrastructure in the JVM anyway. > > I think that the string returned by class.getName() as well as field > and method names should be already interned by JVM. > > So instead of String.inter

Re: Duplicate String values

2012-04-28 Thread Konstantin Kolinko
2012/4/27 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 strin

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 duplica

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. M