Open Davester47 opened 6 months ago
pdu
was never really designed to run on HDD (I forgot to mention it in README.md). But if there's an easy way to detect HDD and limit rayon thread to 1, I'll be happy to accept a pull request. Unless multi-threaded du
is still faster on HDD for some reason.
pdu
performs about 2x worse on my HDD than single-threadeddu
. I'm testing on an old home directory of mine on a mechanical hard drive, with about 712 gigabytes of data in around 150,000 files. The size difference reported by the two programs is due to hard links.Compared to du:
I'm not positive on the source of this difference, but I believe it's due to the directory traversal order used by the two programs.
du
uses a depth-first search whereaspdu
seems to use breadth-first search through rayon, although I can't tell for sure. Interestingly,pdu
is comparable todu
when manually limited to a single thread: