Caldarale, Charles R wrote:
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.
Thanks for clarifying; I thought he was referring to a StringBuilder.

D




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

Reply via email to