anotherjesse / r8im

5 stars 5 forks source link

Add uncompress command #2

Closed philandstuff closed 1 year ago

philandstuff commented 1 year ago

We have a hypothesis that a lot of image pull time is spent decompressing data rather than merely pushing it.

This adds an r8im uncompress command which takes an image, decompresses each layer, and pushes it to the given destination.

Example usage:

r8im uncompress r8.im/philandstuff/hello-world@sha256:0546555aaf71ed26e726717517cbed534de41e00c4b915035c8f1d016a5c53f1 r8.im/philandstuff/hello-world

TODO: maybe this should be named "decompress"? But pushing this as useful working code.

Possible future additions: allow uncompressing a single layer rather than doing every layer. We probably would see the most benefit from not compressing weights layers.