Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Patch
Description
While profiling our application, I noticed that org.apache.jackrabbit.commons.xml.ParsingContentHandler#parse creates a new SAXParserFactory instance on every invocation.
This is quite expensive becauseĀ SAXParserFactory.newInstance() internally scans the whole classpath for META-INF/services/ declarations.
I therefore propose this patch: https://github.com/apache/jackrabbit/pull/90