Re: readdir vs. getdirentriesattr
Re: readdir vs. getdirentriesattr
- Subject: Re: readdir vs. getdirentriesattr
- From: Wim Lewis <email@hidden>
- Date: Mon, 22 Apr 2019 14:27:43 -0700
On Apr 22, 2019, at 9:59 AM, Thomas Tempelmann <email@hidden> wrote:
> Can you give some more information about the fts implementation? Is this
> user-library-level oder kernel code that's doing this? I had expected that
> this would only be a convenience userland function that uses readdir or
> similar BSD functions, but it appears to beat them all, suggesting this is
> optimized at a lower level.
That is surprising to me also. You can find the fts implementation here — at a
first glance, it seems to be using both getattrlistbulk() and fstatat(), but
nothing more exotic than that:
https://opensource.apple.com/source/Libc/Libc-1272.200.26/gen/fts.c.auto.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden