Jukka Zitting created OAK-639:
---------------------------------

             Summary: Optimize isNodeType checks
                 Key: OAK-639
                 URL: https://issues.apache.org/jira/browse/OAK-639
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor


Especially the security code uses frequent isNodeType() calls to check whether 
a particular node is an instance of a given node type.

In general I'd avoid those calls entirely, and rather use a data-driven 
approach where a node is of a given type if it simply looks like it.

However, since that's not the case now and since there are also other use cases 
for explicit node type checks, it makes sense to optimize the isNodeType() 
implementation.

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