Skip to content

Commit 93ab927

Browse files
committed
Reduce release binary size by moving profiling related options to the bench profile
This is better for the dev-experience as well as 'release' as configured now is too slow to use anyway. We want to build `--profile bench` for profiling runs and performance tests.
1 parent 4eabf00 commit 93ab927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ serde_json_lenient = "0.2.3"
101101
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
102102
lto = true # Enables link to optimizations
103103
opt-level = "s" # Optimize for binary size
104-
debug = true # Enable debug symbols, for profiling
105104

106105
[profile.bench]
107106
codegen-units = 256
108107
lto = false
109108
opt-level = 3
109+
debug = "line-tables-only"
110110

111111
[profile.dev]
112112
incremental = false

0 commit comments

Comments
 (0)