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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/05/29 09:02:19 UTC

[jira] [Resolved] (OAK-843) Optimization in the Node#hasNodes()

     [ https://issues.apache.org/jira/browse/OAK-843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved OAK-843.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9
         Assignee: Jukka Zitting

Done in http://svn.apache.org/r1487343.
                
> 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
>            Assignee: Jukka Zitting
>             Fix For: 0.9
>
>
> 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