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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/04/02 10:47:14 UTC

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

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

Michael Dürig commented on OAK-727:
-----------------------------------

Looks good, thanks!

bq. This might also help to resolve OAK-715.
Yes indeed, this was also my thinking.


                
> 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
>         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