-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster file stat for directories? #484
Comments
Would this be a better fit for |
Hmm looks like fts is not in POSIX, but apparently |
I believe that fs already has functions to traverse a directory hierarchy, can you check if those are also slow? E.g. |
|
That makes sense because |
Indeed I found that a pure |
It would make sense to have a faster directory walker in fs, I think, but then it would use libuv to do the stuff. Or improve the current walker. |
That would be great. Should I open a new issue there? |
Let me transfer this one. |
For what it's worth, I have a backup implementation in a branch of |
base::file.info()
is sometimes a bottleneck intargets
pipelines with many files (c.f. ropensci/targets#1403). On a slow nfs drive in a shared RHEL9 cluster, I noticed performance improvements with a custom C implementation that uses fts. Is this an appealing enhancement forps
, either inps::ps_fs_stat()
or elsewhere in the package? If not, I will just implement it fortargets
. Reprex:The text was updated successfully, but these errors were encountered: