tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Performance with many small requests
Date Tue, 12 May 2009 21:03:21 GMT
> From: David kerber [mailto:dckerber@verizon.net]
> 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.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message