You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2021/02/08 13:19:00 UTC

[jira] [Comment Edited] (JCR-4541) reduce classpath lookups for SaxParserFactory

    [ https://issues.apache.org/jira/browse/JCR-4541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17104442#comment-17104442 ] 

Julian Reschke edited comment on JCR-4541 at 2/8/21, 1:18 PM:
--------------------------------------------------------------

trunk: (2.21.1) [r1877352|http://svn.apache.org/r1877352]
2.20: (2.20.1) [r1877583|http://svn.apache.org/r1877583]
2.16: (2.16.7) [r1881140|http://svn.apache.org/r1881140]
2.14: [r1886321|http://svn.apache.org/r1886321]

...in retired branches:
2.18: (2.18.6) [r1878590|http://svn.apache.org/r1878590]



was (Author: reschke):
trunk: (2.21.1) [r1877352|http://svn.apache.org/r1877352]
2.20: (2.20.1) [r1877583|http://svn.apache.org/r1877583]
2.18: (2.18.6) [r1878590|http://svn.apache.org/r1878590]
2.16: [r1881140|http://svn.apache.org/r1881140]


> 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_12, performance
>             Fix For: 2.14.9, 2.20.1, 2.22, 2.21.1, 2.18.6, 2.16.7
>
>
> 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)