]> wimlib.net Git - wimlib/commit
wimlib_iterate_dir_tree(): don't checksum unhashed blobs
authorEric Biggers <ebiggers3@gmail.com>
Mon, 3 Jan 2022 20:33:20 +0000 (14:33 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 3 Jan 2022 20:33:20 +0000 (14:33 -0600)
commit9fe06c98e9d52ae2f5fdfc31cf07cef10ffaf8c3
tree5cbc21a4ea6f4eae1212edb0f09296c849aea9f8
parenteaccd7008cc9b7a976de87d30a7f64ccd421148a
wimlib_iterate_dir_tree(): don't checksum unhashed blobs

wimlib_iterate_dir_tree() on a modified-but-not-committed image is very
slow because it checksums all unhashed blobs.  This was originally
implemented by commit 681faad85f73 ("wimlib_iterate_dir_tree(): checksum
unhashed blobs"), presumably to make the sha1_hash field always valid.
However, I can't remember a real use case for this.  The current
behavior is causing problems, so let's just revert it and update the
documentation accordingly.

Reported at https://wimlib.net/forums/viewtopic.php?f=1&t=572
include/wimlib.h
src/iterate_dir.c