> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Subject: Re: svn commit: r1702821 - in /tomcat/tc8.0.x/trunk: 
> java/org/apache/tomcat/util/http/HttpMessages.java webapps/docs/changelog.xml

> What's the reason for caching references to the return value of
> sm.getString()? Is there a significant performance advantage?

There's a whole lot of stuff going on inside that method, including string 
formatting based on locale.  Definitely not something you want to keep redoing 
for frequently used statuses.

 - 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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to