-
Notifications
You must be signed in to change notification settings - Fork 0
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
make it faster #3
Comments
refactor to use need to do profiling and more investigation |
I think this must have something to do with the way that Golang does filesystem walking because in the profile, pretty much all the execution time is taken up by "syscall" entries, even after using |
I think we don't need the nested https://go.dev/play/p/rReTZJ7o_-f also more investigation shows that the act of retrieving file sizes in itself increases execution time by ~4x on MacBook Pro NVMe SSD so maybe even more on HDD also consider parallel file size stat calls using something like |
The new refactored |
I tested the latest release 1.2.1 on an instance of WSL2 on Windows 10 and it was still 1/10th the speed of |
using regular
du -shc *
on a home dir with 17957 files (87GB) takes 0.8s butduh
takes 20sfigure out how to make it faster
The text was updated successfully, but these errors were encountered: