[ 
https://issues.apache.org/jira/browse/JCR-4541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated JCR-4541:
--------------------------------
    Labels: candidate_jcr_2_18 performance  (was: candidate_jcr_2_20 
performance)

> reduce classpath lookups for SaxParserFactory
> ---------------------------------------------
>
>                 Key: JCR-4541
>                 URL: https://issues.apache.org/jira/browse/JCR-4541
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons, jackrabbit-jcr2spi
>            Reporter: Lars Grefer
>            Assignee: Julian Reschke
>            Priority: Major
>              Labels: candidate_jcr_2_18, performance
>             Fix For: 2.20.1, 2.22, 2.21.1
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to