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`.
  • Loading branch information
Raphexion committed Nov 18, 2024
1 parent 2cb5444 commit 0c33479
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 @@ -145,12 +145,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 0c33479

Please sign in to comment.