kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
408 stars 48 forks source link

Implement fast flag when using Zopfli for compression. #54

Closed adamreichold closed 1 year ago

adamreichold commented 1 year ago

I noticed this when the cargo-deb step in our CI became slower instead of faster after going from --fast with default features (i.e. LZMA) to --no-default-features (i.e. Zopfli but no --fast flag).

The value for maximum_iterators is a suggestion from the documentation of zopfli-rs for files over multiple MB (which is the case for our particular package) and I just tried to apply the same scaling to maximum_block_splits but I have admittedly no reasoning for this.

kornelski commented 1 year ago

That makes sense. Thanks!