Description
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.