Eliot Moss wrote:
> I would beware of adding fields to such a commonly used class as String
> ... String objects already contribute greatly to allocation and heap size
> for a lot of programs, I suspect ... Eliot
>
Sure, the hope is to try to discover why our performance is so bad for
jython. It's clear from the profile that string interning is costing us,
so the hunch was that many of the strings being interned were already
interned (hence the extra field). But the performance results showed
that knowing that a string was interned didn't save us significant run
time, and looking at the jython code it can be seen they are largely
interning strings created from string buffers. I think the space could
have been found in String as the length and starting offset of the
string are held as ints, so I'm guessing some of the msbs are never used :-)
Ian
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core