-
Notifications
You must be signed in to change notification settings - Fork 5
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
perf: optimize walk iterator #3
Conversation
I ran a comparison using this script: https://gist.github.com/citycide/8884d5bb845c782e71fd5fa72783afa7 I also dropped a counter into It creates a file structure with a bunch of nested directories & files (using some procs I pulled from our test file), and then uses the glob pattern
🎉 |
For *nix you can use |
There is cool Rust library: walkdir. |
@data-man would that really be a perf gain over the stdlib |
@citycide Maybe, |
Got it — I'll look more into |
BTW maybe |
@data-man not sure that API would be useful in |
@citycide Maybe something like |
Closes #2
This should already eliminate unnecessary directory traversals but before merging I'd like to have a clear before & after. Reviews would be appreciated in the meantime.