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 11, 2024
1 parent 2cb5444 commit a1918e1
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 a1918e1

Please sign in to comment.