Skip to content

Commit

Permalink
optimize release and benchmark builds even more
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Dec 6, 2023
1 parent 5b00c12 commit 41b83f2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,16 @@ test-case = "3.3.1"
[features]
# Enables extended debugging information during parsing.
debug_parser = []


[profile.release]
lto = "fat"
opt-level = 3
codegen-units = 1
#rustflags = ["-C", "target-cpu=native"] # Currently unstable and it can cause problems on older CPUs (don't have newer CPU instructions).

[profile.bench]
lto = "fat"
opt-level = 3
codegen-units = 1

0 comments on commit 41b83f2

Please sign in to comment.