2 ms·
Building in release: cargo build --release du -sh ./target/release/lstr -> 4.4M Building with other release options brings it down to 2.3M: [profile.re
by pveierland 1y ago
Building in release:
cargo build --release
du -sh ./target/release/lstr -> 4.4M
Building with other release options brings it down to 2.3M:
[profile.release]
codegen-units = 1
opt-level = "s"
lto = true
panic = "abort"
strip = "symbols"
- cyann 1y agoI did some benchmarks on one of our CLI and found that `opt-level = "z"` reduced the size from 2.68M to 2.28M, and shaved 10% on the build time, worth a try. I'll try with `panic = "abort"` for our next release, thanks for the reminder.