> 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

> > 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.

> No string formatting, and the Locale should have already resolved by the
> time the first call was made to StringManager.getString.

You're presuming that java.util.ResourceBundle has been implemented the way 
you'd like and doesn't use weak references or something similar.  But yes, in 
the typical case, this shouldn't be much more than a map lookup.

 - 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