jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Tree.hasChild() / Tree.getChild()
Date Tue, 01 Oct 2013 13:49:37 GMT

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.


Jukka Zitting

View raw message