News for hackers. Stuff that matters.
Re:Show HN: Dut, a fast Linux disk usage calculator by legends2k on Thursday July 11, 2024 @01:57AM (#40934013)
And to hash something needs reading all of its data. I think deducing the file size would actually be faster in some file systems and never slower with any.
Re:Show HN: Dut, a fast Linux disk usage calculator by mort96 on Thursday July 11, 2024 @03:19AM (#40934378)
Faster in all file systems I'd guess, stat is fast, opening the file and reading its contents and updating a checksum is slow, and gets slower the larger the file is.