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/09/16 17:17:53 UTC

[jira] [Commented] (OAK-924) Optimize namespace lookups

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

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

Much of the observed slowness is caused by getting nodes with anonymous is slow. See OAK-1018. Running the test with the admin user gives about 250% speed up. Caching {{jcr:system/namespaces}} across sessions and using a {{BiMap}} instead of a plain {{Map}} in {{SessionNameSpaces}} results in another 205% speed up. 
                
> Optimize namespace lookups
> --------------------------
>
>                 Key: OAK-924
>                 URL: https://issues.apache.org/jira/browse/OAK-924
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: core, jcr
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>         Attachments: OAK-924-bench.patch
>
>
> The current namespace handling code does a lot of repetitive work, which shows up in hotspots like XML imports and Sling's namespace mapping code.

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