jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Richard (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-2707) Performance: Consider cache for SessionImpl#getNamespacePrefixes
Date Wed, 29 Jul 2015 12:04:04 GMT

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

Joel Richard commented on OAK-2707:
-----------------------------------

Sling does now cache the namespaces globally for the new JcrValueMap. Unfortunately, the problem
remains for the JcrPropertyMap which is part of the Sling API.

> Performance: Consider cache for SessionImpl#getNamespacePrefixes
> ----------------------------------------------------------------
>
>                 Key: OAK-2707
>                 URL: https://issues.apache.org/jira/browse/OAK-2707
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>    Affects Versions: 1.1.7
>            Reporter: Joel Richard
>            Priority: Critical
>              Labels: performance
>         Attachments: OAK-2707.patch, Screen Shot 2015-03-30 at 08.38.58.png
>
>
> Sesison#getNamespacePrefixes is heavily used in Sling (see org.apache.sling.jcr.resource.JcrPropertyMap#escapeKeyName)
and can easily be called 5000-8000 times per page load.
> Therefore, it adds 10-15% page rendering overhead for Sling-based websites (see attachment).
Would it be possible to add either a global cache or at least a session cache for this method?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message