> From: David kerber [mailto:dcker...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to