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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>