crane icon indicating copy to clipboard operation
crane copied to clipboard

Add ability to customize compression level.

Open dpc opened this issue 3 years ago • 1 comments

As transfers times are often the bottleneck, would be nice if it was possible to pass custom arguments to zstd compression (like -19 or even -U -30) and trade compute for storage space.

dpc avatar Aug 14 '22 22:08 dpc

I'd be weary of adding too many customization options especially if we decide to not use zstd at some point.

FWIW it is possible to disable the default behavior by setting doInstallCargoArtifacts = false; and then using your own hook to do the compression.

It's not ergonomic, but I'd like to at least explore alternatives for optimizing the build artifacts #74 before we add more configurations here

ipetkov avatar Aug 15 '22 15:08 ipetkov