[RFA/JDWP] VMVirtualMachine StringBuffer cleanup
Tom Tromey
tromey@redhat.com
Tue Jan 16 01:33:00 GMT 2007
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
Keith> Okay, I don't really see too much of a difference between
Keith> gnu.gcj.runtime.StringBuffer and java.lang.StringBuilder, so I opted
Keith> for the latter.
The difference is that StringBuilder has to make a copy of the char[]
data when toString is called. Our StringBuffer shares the data, which
is more efficient.
However, this only makes a difference if you expect this code to be
run with some frequency.
Tom
More information about the Java-patches
mailing list