Re: [PATCH 6/7] odb: introduce object filters to `odb_for_each_object()`
Patrick Steinhardt <ps@pks.im> writes:
Show 6 quoted lines
> An alternative going forward could be to perform filtering of yielded
> objects inside `odb_for_each_object()` itself so that it will filter out
> any objects that the backends themselves couldn't filter efficiently.
> But I'm not sure I want to go there as part of this series -- we only
> have a single caller anyway that iterates with a filter, and that caller
> already knows to manually filter references.
Ah, that's a valid point. I didn't think of that.
If only we were using a language that has lazy iterators ;)
--
Cheers,
Toon