Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo: compile
dev
deps with opt-level=3
Yuya noted the other day that `pest 2.7.9` seemed to cause testing slowdowns. Out of curiosity, I decided to see how much `opt-level=0`, which is implied by the default `dev` profile, costs us. This sets `opt-level=3`, and also sets `codegen-units=1` as well, which should improve output object file size and performance, too. This dramatically speeds up testing by approximately 33% (45 -> 30s on my machine.) However, it comes at the cost of a higher initial compile time for dependencies; clean rebuilds nearly double now, from about 40s -> 1m30s. This is probably a worthy tradeoff, though. This is all tested on my 6-core/12-thread AMD Zen 3 desktop. We could target more specific dependencies; we already do so with `insta`. But compiling everything helps ensure we don't hit more performance cliffs when some dependency introduces a codepath that behaves very poorly when unoptimized, especially when they incrementally add up over time and the frog slowly boils. We may want to tune Dependabot updates to be a little more spaced out (perhaps once a week, if we can do so) in order to compensate for this. Signed-off-by: Austin Seipp <[email protected]> Change-Id: I6d84fac2b9d64d6ef1c8187f227cd1c1caa195ab
- Loading branch information