facebook / dotslash

Simplified executable deployment
https://dotslash-cli.com
Apache License 2.0
535 stars 14 forks source link

Consider supporting "tar.xz" format #10

Closed dtolnay closed 4 months ago

dtolnay commented 4 months ago

Official rustup components are available only in tar.gz and tar.xz. The tar.xz are significantly better compressed. rustup exclusively uses the tar.xz artifacts, and the plan is to stop providing tar.gz altogether (https://github.com/rust-lang/infra-team/issues/89).

https://static.rust-lang.org/dist/2023-12-28

They may or may not provide zstd in the future (https://github.com/rust-lang/infra-team/issues/97).

bolinfest commented 4 months ago

For sure, adding support is likely easy from a technical perspective, so it's more about what our tolerance is for increased binary size of DotSlash itself.

bolinfest commented 4 months ago

Interesting. My understanding is that xz priorities size compared to extraction time. For a build cluster talking to a CAS where presumably network is fast and disk is a bigger bottleneck, I feel like that would be a bad tradeoff. Though certainly if you on a personal machine and network isn't so great, then xz is probably what you want?