3 ms·
If you're listing just the filenames, the things that makes fd fast (the parallelised directory traversal when you do something that requires stat calls or simi
by vidarh 5y ago
If you're listing just the filenames, the things that makes fd fast (the parallelised directory traversal when you do something that requires stat calls or similar) are irrelevant, as the getdents() calls are going to be more affected by your buffer size.
So for the limited subset of tasks where you're ok with using a tool that might not be installed and need options that requires stat calls and the directories may be large enough, it might make a difference.