[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An interessting change for shared char[] in String/StringBuffer
From: |
Tom Tromey |
Subject: |
Re: An interessting change for shared char[] in String/StringBuffer |
Date: |
07 Apr 2004 15:16:25 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> ">" == Chr Ullenboom <address@hidden> writes:
>> From http://java.sun.com/j2se/1.5.0/jcp/beta1/index.html#java.lang:
>> "In this release, the sharing between String and StringBuffer has been
>> eliminated."
>> Does this mean to change to change the implementation in Classpath too? I
>> like this optimization...
I don't think we necessarily have to change this. IMO it would depend
on whether the change is observable by user code. Our implementation
doesn't always share, anyway. It only shares if the buffer is mostly
in use.
Tom