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 "Joel Richard (JIRA)" <ji...@apache.org> on 2015/03/31 10:10:53 UTC

[jira] [Created] (OAK-2707) Performance: SessionImpl#getNamespacePrefixes should be cached

Joel Richard created OAK-2707:
---------------------------------

             Summary: Performance: SessionImpl#getNamespacePrefixes should be cached
                 Key: OAK-2707
                 URL: https://issues.apache.org/jira/browse/OAK-2707
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: oak-jcr
    Affects Versions: 1.1.7
            Reporter: Joel Richard
            Priority: Critical


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