mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #272] dust got significantly slower with version 0.8.1 #120
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpyrosRoum on GitHub (Oct 31, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/272
OS: Arch Linux 6.0.6-zen1-1-zen x86_64
Hello, it seems that dust got slower recently.
To be more precise I run
sudo dust -X home /, a little while ago this would finish within a few seconds (maybe around 30) but now it was left for a few hours and still didn't finish, pinning all my cores (Ryzen 5 5600X) to 100%I downloaded and tried different versions and the last one that worked was v0.8.0.
Mind you all versions work if I run them in e.x. my home directory, but not in root.
Edit with some more info:
It seems like it still worked fine on alpha-2, so it must be something in these commits.
@bootandy commented on GitHub (Nov 9, 2022):
I can't replicate this.
Is it the root directory:
dust -X home /
or the fact that it is run as root:
sudo dust
that is making it slow? (Or does it require both to be slow)?
@SpyrosRoum commented on GitHub (Nov 9, 2022):
Running as root or not doesn't seem to make a difference, latest dust gets stuck regardless.
When running in the home directory instead of root,
dust81a2(dust v0.8.1-alpha2) is consistently faster.Here is a comparison using hyperfine:
vs
I used
--warmup 1because the first time I runhyperfine dust ~/the first run was significantly slower (close to 7 seconds), I'm not sure what gets cached where or how to invalidate it but dust81a2 (that I run after dust) didn't have that issue, so--warmup 1should make things fair regardless.
Notice that
dust81a2is faster by roughly 60ms, while the slowest run ofdust81a2is still faster than the fastest run ofdustby about 10ms.I'm not sure if that slow down is related to dust never finishing when running in root or not, could be different issues.
@bootandy commented on GitHub (Nov 7, 2023):
Current version:
I'm sufficiently happy with any performance differences.