Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize
metadata
calls on Linux. (#367)
Optimize `metadata` calls on Linux in the case where there's exactly one path component (and it isn't `..`) and symlinks are not being followed. In that case, we can just call `stat_unchecked` instead of doing an `openat2` followed by an `fstat`.
- Loading branch information