You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/06/14 06:17:47 UTC
DO NOT REPLY [Bug 9859] New: -
Avoid SimpleDateFormat creation for every dispatched request
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9859
Avoid SimpleDateFormat creation for every dispatched request
Summary: Avoid SimpleDateFormat creation for every dispatched
request
Product: Tomcat 4
Version: 4.0 Beta 3
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Connector:HTTP/1.1 (deprecated)
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: arvind.srinivasan@sun.com
The Request Dispatcher code path creates new HttpRequestBase objects. Creation
of the SimpleDateFormat data member - formats - of HttpRequestBase shows up as a
hotspot on performance profiles.
I think this can be avoided by making formats a static final variable and
synchronize on formats[i] in getDateHeader (the only place where formats is
used).
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>