Thanks for spelling it out, it makes perfect sense now. On Sun, Aug 23, 2026 at 8:58 AM Alan Bateman <[email protected]> wrote:
> > > On 17/08/2026 17:22, David Alayachew wrote:: > > Sorry, I am still confused. Isn't it slower to use the BiPredicate? You're > already fetching the attributes to potentially not even use them at all. > Whereas with walk, they are not fetched at all, only when the user > explicitly calls for > Sorry, I am still confused. Isn't it slower to use the BiPredicate? You're > already fetching the attributes to potentially not even use them at all. > Whereas with walk, they are not fetched at all, only when the user > explicitly calls for it. > > Walking a file tree involves reading the file attributes. The filter in > the example is reading them a second time. The find method has the option > of avoiding the additional I/O. > > -Alan >
