Currently if you create a cache entry on a system where gzip is used and then restore the cache on a system where zstd is used, you get a cache miss.
It would be nice if instead mutliple compression algorithms were supported.
Something like this:
on cache creation:
zstd with --long present
zstd present
- use
gzip
on cache restoring:
zstd with --long present
- if according cache entry is present
- if according cache entry is not present
zstd present
- if according cache entry is present
- if according cache entry is not present
- use
gzip
- if according cache entry is present
This way, for example a cache entry created on a gzip system can be used even on a zstd system.
And to be even fancier, when restoring a "lower" level (gzip or zstd on zstd with --long, or gzip on zstd), the file could be recompressed with the "higher" level and a new cache entry for that higher level created, so that next time it can be used more efficiently.
Currently if you create a cache entry on a system where
gzipis used and then restore the cache on a system wherezstdis used, you get a cache miss.It would be nice if instead mutliple compression algorithms were supported.
Something like this:
on cache creation:
zstdwith--longpresentzstdwith--longzstdpresentzstdgzipon cache restoring:
zstdwith--longpresentzstdpresentgzipThis way, for example a cache entry created on a
gzipsystem can be used even on azstdsystem.And to be even fancier, when restoring a "lower" level (
gziporzstdonzstdwith--long, orgziponzstd), the file could be recompressed with the "higher" level and a new cache entry for that higher level created, so that next time it can be used more efficiently.