[
https://issues.apache.org/jira/browse/JCR-5161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18002680#comment-18002680
]
Julian Reschke commented on JCR-5161:
-------------------------------------
Alternative proposal that avoids changing the API (and thus will improve the
situation for all users): change NamespaceHelper so that the namespace registry
is fetched only once.
> Add variant of NamespaceHelper.registerNamespace
> ------------------------------------------------
>
> Key: JCR-5161
> URL: https://issues.apache.org/jira/browse/JCR-5161
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: namespace
> Reporter: Joerg Hoh
> Priority: Major
>
> The method {{NamespaceHelper.registerNamespace()}} always creates a
> NamespaceRegistry on which it acts. If called in a tight loop this creation
> is redundant, so there should be a version of this method, which accepts an
> already existing NamespaceRegistry as parameter.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)