DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41580>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41580 Summary: Avoid invoking ByteChunk.getLength repeatedly in loops Product: Tomcat 6 Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P5 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] The NetBeans Profiler indicated that ByteChunk.getLength was being invoked many thousands of time during a simple microbenchmark. Profiling a single request to a simple hello.jsp showed that ByteChunk.getLength was being called 60 times. Most of these came from for loops. This can be avoided by simply using int length = bc.getLength(); for (int i = 0; i < length; i++) instead of for (int i =0; i < bc.getLength(); i++) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]