tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kerber <>
Subject Re: Performance with many small requests
Date Wed, 13 May 2009 01:17:46 GMT
Caldarale, Charles R wrote:
>> From: David kerber []
>> Subject: Re: Performance with many small requests
>> When (what java version) did those string operation optimizations
>> happen?  Sun's web page that talks about this (and explicitly says
>> that string buffers are usually faster than direct string operations)
>> doesn't mention a specific java version.
> Don't confuse a StringBuffer (the recommended type) with a byte array (what Chris was
talking about).  Since a String object is immutable, one should always use a StringBuffer
(preferably a StringBuilder, these days) when you are constructing strings in a piecemeal
fashion, then convert to String when complete.
Thanks for clarifying; I thought he was referring to a StringBuilder.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message