[
https://issues.apache.org/jira/browse/OAK-843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668299#comment-13668299
]
Antonio Sanso commented on OAK-843:
-----------------------------------
+1 now that OAK-839 has been solved calling hasNext() should be efficient enough
> 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