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 Jan 22, 2025
1 parent 7c4a910 commit 379062c
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 @@ -292,12 +292,12 @@ debug-assertions = false

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

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

0 comments on commit 379062c

Please sign in to comment.