[ https://issues.apache.org/jira/browse/XBEAN-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg closed XBEAN-274. ------------------------------- Resolution: Fixed btw, found this with my OSS donated YourKit profiler. So thanks to yourkit! > Xbean finder is slow because of String.replaceFirst > --------------------------------------------------- > > Key: XBEAN-274 > URL: https://issues.apache.org/jira/browse/XBEAN-274 > Project: XBean > Issue Type: Bug > Components: finder > Affects Versions: 4.0 > Reporter: Mark Struberg > Assignee: Mark Struberg > Fix For: 4.1 > > > JarArchive uses entry.getName().replaceFirst(".class$", ""); > This is effectively a replacement of the last ".class" in the entry name. > This is pretty slow as replaceFirst internally creates a PatternMatcher. > By replacing this line with an endsWith + substring I ended up with 20% > performance boost. > Overall in a real world application my OpenWebBeans boot time went down from > 1020ms to 969ms. -- This message was sent by Atlassian JIRA (v6.3.4#6332)