conserve
conserve copied to clipboard
Don't try to compress incompressible files
Probably look at the extension or filename pattern (eg to handle git packs).
Might be simplest to compress them at level 0.
Maybe also change paths inside conserve so they can be more easily matched by a glob.
This also would still be useful, but Snappy seems sufficiently smart about incompressible data it's not a priority.
Furthermore, Snappy (or at least snappy-rs) has no option for 0 compression.
We could potentially store them just exactly as-is, but I think there's actually some benefit in storing content not exactly as-is, so that it's not accidentally confused with the origin files. In any case, Snappy compression speed doesn't seem to be the bottleneck.
I feel like heuristics based purely on file name or extension might be a bit fragile.
Maybe also add a predicate of the files being smaller than certain size to be eligible for consideration for being stored as is? I.e. always try to compress files larger than, say, 50MB, regardless of file name pattern or extension.