Closed gulrak closed 3 years ago
This ticket collects some aspects that lead to lower performance on directory iteration on POSIX backend (e.g. macOS, Linux and FreeBSD).
fs::status
::lstat
fs::directory_iterator
fs::directory_entry
fs::directory_entry::assign
fs::recursive_directory_iterator
This is now part of release v1.5.2
This ticket collects some aspects that lead to lower performance on directory iteration on POSIX backend (e.g. macOS, Linux and FreeBSD).
fs::status
doesn't always fill symlink information when possible, leading to subsequent redundant::lstat
calls.fs::directory_iterator
always recreatesfs::directory_entry
even when there isfs::directory_entry::assign
fs::recursive_directory_iterator
queries full status and symlink status even when the only question is it the type is directory or symlink.