Use full optimizations for master and faster config else
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
This commit is contained in:
parent
8a5dbef474
commit
9c3a8edcae
3 changed files with 168 additions and 111 deletions
21
Cargo.toml
21
Cargo.toml
|
@ -119,6 +119,21 @@ conf-files = [
|
|||
maintainer-scripts = "debian/"
|
||||
systemd-units = { unit-name = "matrix-conduit" }
|
||||
|
||||
# For flamegraphs:
|
||||
#[profile.release]
|
||||
#debug = true
|
||||
[profile.dev]
|
||||
lto = 'thin'
|
||||
incremental = true
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
incremental = true
|
||||
codegen-units = 1
|
||||
# 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
Add a link
Reference in a new issue