Jukka Zitting created OAK-911:
---------------------------------

             Summary: Optimize Session.getItem(String)
                 Key: OAK-911
                 URL: https://issues.apache.org/jira/browse/OAK-911
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: jcr
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor


The {{Session.getItem(String)}} method is currently implemented by a 
{{getNode()}} call followed by {{getProperty()}} if needed. This causes two 
path traversals when accessing properties or non-existent content.

A faster approach would be to first do a {{getNode()}} on the parent path and 
then check for a matching property or child node.

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

Reply via email to