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 "Antonio Sanso (JIRA)" <ji...@apache.org> on 2013/05/28 11:31:20 UTC
[jira] [Created] (OAK-843) Optimization in the Node#hasNodes()
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