Skip to content

Commit

Permalink
perf: Change link-time optimization in dev and test
Browse files Browse the repository at this point in the history
This change improves the development cycle in both dev and test,
when running the same command multiple times in a row.

On my machine I can see improvements from minutes to seconds.
For example when running `cargo run` and `cargo test`.

Co-authored-by: Paul Dann <[email protected]>
  • Loading branch information
Raphexion and giddie committed Dec 18, 2024
1 parent e582dc8 commit 6a5a31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ debug-assertions = false

[profile.dev]
opt-level = 2
lto = "thin"
lto = "off"
incremental = true

[profile.test]
opt-level = 2
lto = "thin"
lto = "off"
incremental = true
debug = true
debug-assertions = true

0 comments on commit 6a5a31b

Please sign in to comment.