Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4541

reduce classpath lookups for SaxParserFactory

    XMLWordPrintableJSON

Details

    • 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

      Attachments

        Activity

          People

            reschke Julian Reschke
            larsgrefer Lars Grefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: