Skip compression of already compressed files based on saved file hashes#296
Skip compression of already compressed files based on saved file hashes#296PetrDlouhy wants to merge 1 commit intoevansd:masterfrom
Conversation
|
Can’t this be done with an existence check rather than an extra file of metadata? e.g. if trying to compress |
|
@adamchainz It would be needed to regenerate the compressed file if the |
|
The hash |
|
In my project, I see compressed versions for files with hash as well as files without hash. For example for So if I haven't overlooked something, it means, that the problem is still valid for half of the files. |
|
Right - those unhashed files are “left over” by |
|
@adamchainz OK, thank you for explaining. That is very neat option. |
This is better approach to fix #279 than MR #295.
It saves hashes of all files and compresses only files, their hash changed.