-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
walk: Add a cache for DirEntry metadata #863
Conversation
There is a minor behaviour change (which you can see from the changed tests): |
9238757
to
635c53d
Compare
Perhaps I can make it build on Windows after 4 tries? :P |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool - thank you very much!
I have two remarks:
|
Yeah I'm happy to wait for #833. I'll add the changelog. |
Thank you. I merged #833. |
635c53d
to
067bee2
Compare
Rebased and added the CHANGELOG entry |
067bee2
to
de24398
Compare
This is a reimplementation of #402, using
once_cell::unsync::OnceCell
instead of a hand-rolledLazy
type. It gives some performance benefits when multiple filters require metadata:without much affect on perf in other cases:
strace
confirms a reduction instatx()
calls:Together with #853 it would be possible to share the
Metadata
with the colorization which would be an additional benefit, but it's not done in this PR.