aggressive optimisations
Signed-off-by: June <june@girlboss.ceo>
This commit is contained in:
parent
100cae49b6
commit
84338cc827
1 changed files with 9 additions and 3 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -156,14 +156,20 @@ lto = 'off'
|
|||
incremental = true
|
||||
|
||||
[profile.release]
|
||||
lto = 'thin'
|
||||
incremental = true
|
||||
codegen-units=32
|
||||
lto = 'fat'
|
||||
incremental = false
|
||||
codegen-units=1
|
||||
opt-level = 3
|
||||
overflow-checks = true
|
||||
strip = "symbols"
|
||||
panic = "abort"
|
||||
# If you want to make flamegraphs, enable debug info:
|
||||
# debug = true
|
||||
|
||||
# For releases also try to max optimizations for dependencies:
|
||||
[profile.release.build-override]
|
||||
opt-level = 3
|
||||
codegen-units=1
|
||||
[profile.release.package."*"]
|
||||
opt-level = 3
|
||||
codegen-units=1
|
||||
|
|
Loading…
Add table
Reference in a new issue