Hacker News new | ask | show | jobs
by legends2k 709 days ago
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.
1 comments

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.