jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject Re: Tree.hasChild() / Tree.getChild()
Date Tue, 01 Oct 2013 13:56:00 GMT

On 1.10.13 3:49 , Jukka Zitting wrote:
> On Tue, Oct 1, 2013 at 9:27 AM, Michael Dürig<mduerig@apache.org>  wrote:
>> >But since we have that exists call, getChild() can return just a "thunk".
>> >The actual round-trip is deferred to later accesses of the returned child.
>> >And the hasNode() optimisation you mention would go into the exists() call.
>> >
>> >I'm aware that things are currently not implemented that way and we even
>> >implement hasChild() through getChild().exists(). But maybe we should
>> >reconsider this!?
> We can, though I'm a bit skeptical on whether the benefit is worth the effort.

Ok, let's keep this in mind. We should look into whether we need to 
improve the current hasChild() implementation though.


View raw message