Optimizing My Disk Usage Program
In my previous post, Maybe the Fastest Disk Usage Program on macOS, I wrote about dumac. A very fast alternative to du -sh that uses a macOS-specific syscall getattrlistbulk to be much faster than the next leading disk usage program. I received some great technical feedback in the Lobsters thread. After implementing some of the suggestions, I was able to increase performance by ~28% on my large benchmark. hyperfine --warmup 3 --min-runs 5 './before temp/deep' './after temp/deep' Benchmark 1: .