https://issues.apache.org/bugzilla/show_bug.cgi?id=56787
Bug ID: 56787 Summary: Simplified jndi name parsing Product: Tomcat 7 Version: trunk Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: xs...@ebay.com Created attachment 31855 --> https://issues.apache.org/bugzilla/attachment.cgi?id=31855&action=edit Patch Tomcat uses JNDI to look up resource. The name of a resource needs to be parsed into a Name object. By default it is a CompositeName. Parsing a string to a CompositeName is low performance due to the following reason, 1. Call too many times of the method "String.startsWith" 2. Create StringBuffer instance for each component The patch provides a simplified Name implementation. The parsing is around 6 times faster than the default one. The result was get on my Macbook Pro by running TestSimpleName.testAB(). The issue is impacting the start up of tomcat server. Because there are many resource looking up when server is starting. The patch can improve the server start time. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org