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

Reply via email to