Speed up with file size check

Issue #1 resolved
Matt Traudt repo owner created an issue

Hashing can be slow, especially when sifting through many files that are not relevant. Generate a second file that contains file sizes instead of hashes. Then when doing postwork, check file size first, then hash if file size is correct.

Comments (5)

  1. Matt Traudt reporter

    14bc768 adds this functionality.

    I'm concerned about how it will work when looking at file sizes on two different file systems. I did testing on ext4, but will use it in production on zfs with compression.

  2. Matt Traudt reporter

    I should parse the command line better. Treat things as flags and arguments. Then I can pass a --no-size option and skip size checking if desired. Leaving open until that has been added.

  3. Log in to comment