Antonio Sanso created OAK-843:
---------------------------------
Summary: Optimization in the Node#hasNodes()
Key: OAK-843
URL: https://issues.apache.org/jira/browse/OAK-843
Project: Jackrabbit Oak
Issue Type: Improvement
Components: jcr
Reporter: Antonio Sanso
IMHO o.a.j.oak.jcr.NodeImpl#hasNodes() has the same "issue" reported for
OAK-839.
Indeed it makes a call to getChildCount() that can be avoided.
In order to know if one node has nodes is not necessary to get the full count
of the children.
Should you agree I might provide a patch
--
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