You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2013/04/02 11:17:14 UTC

[jira] [Resolved] (OAK-727) Use snapshot of namespaces in SessionImpl

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

Marcel Reutegger resolved OAK-727.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7

Applied patch in revision: 1463454
                
> Use snapshot of namespaces in SessionImpl
> -----------------------------------------
>
>                 Key: OAK-727
>                 URL: https://issues.apache.org/jira/browse/OAK-727
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>    Affects Versions: 0.6
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: OAK-727.patch, OAK-727.patch
>
>
> Importing content with the Oak XML ImportHandler makes quite heavy use of namespaces and results in frequent calls to Namespaces.getNamespaceMap(). Most of the time the complete namespace map is not actually needed and only a single mapping is requested. This adds quite some overhead, which we can easily avoid. The JCR specification says (3.5.1):
> bq. The local namespace mapping of a session is determined by the initial set of mappings copied from the namespace registry and any session-local changes made to that set.
> Right now we don't have this initial set, but always ask the namespace registry.
> I suggest we copy the mappings on first usage and work with this copy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira