Property files are read for every table generated -------------------------------------------------
Key: DISPL-231 URL: http://jira.codehaus.org/browse/DISPL-231 Project: DisplayTag Type: Improvement Components: Build/distribution Versions: 1.0 Fix For: 1.1 Attachments: TableProperties.java Every time a table is generated, the property files are accessed. In TableProperties.java getLocaleResolverInstance(), some code is executed without useing the result. By moving a if-clause to the top of the method, the code won't be executed, and we will get a performance gain. I have implemented the change in my locale version, at it works fine. I have also attached the new version of TableProperties.java (see line 409). Following change has been done: class: TableProperties.java method: getLocaleResolverInstance() Moved if(localeResolver == null){ from line 433 to line 409. The localeResolver is null only first time a table is generated, the rest of the tables will use the localeResolver found first time. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel