Skip to content

Commit

Permalink
Override miniz_oxide to build it with optimizations
Browse files Browse the repository at this point in the history
Building this crate with optimizations decreases the gzipping
part of `cargo xtask dist` from `30-40s` down to `3s`,
the overhead for `rustc` to apply optimizations is miserable on this background
  • Loading branch information
Veetaha committed Jun 21, 2020
1 parent 33a0f32 commit e2eb661
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ opt-level = 0
[profile.release.package.xtask]
opt-level = 0

# Gzipping the artifacts is up to 10 times faster whith optimizations (`cargo xtask dist`).
# `miniz_ozide` is the direct dependency of `flate2` which does all the heavy lifting
[profile.dev.package.miniz_oxide]
opt-level = 3

[patch.'crates-io']
# rowan = { path = "../rowan" }

Expand Down

0 comments on commit e2eb661

Please sign in to comment.