Switch to thin LTO; add Cargo profile release-debug

This commit is contained in:
Joakim Frostegård 2022-04-04 12:32:42 +02:00
parent 9f8f80a17b
commit 44b50204e2
10 changed files with 16 additions and 15 deletions

View file

@ -40,13 +40,16 @@ aquatic_ws_protocol = { path = "aquatic_ws_protocol" }
membarrier = { git = "https://github.com/glommer/membarrier-rs.git", branch = "issue-22" }
[profile.release]
debug = true
lto = true
debug = false
lto = "thin"
opt-level = 3
[profile.test]
opt-level = 3
inherits = "release-debug"
[profile.bench]
inherits = "release-debug"
[profile.release-debug]
inherits = "release"
debug = true
opt-level = 3
lto = true

View file

@ -10,8 +10,6 @@
## Medium priority
* Use thin LTO?
* Add release-debug profile?
* quit whole program if any thread panics
* config: fail on unrecognized keys?
* Run cargo-deny in CI

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_http_private -- $@
cargo run --profile "release-debug" --bin aquatic_http_private -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_http -- $@
cargo run --profile "release-debug" --bin aquatic_http -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_udp -- $@
cargo run --profile "release-debug" --bin aquatic_udp -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_ws -- $@
cargo run --profile "release-debug" --bin aquatic_ws -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic -- $@
cargo run --profile "release-debug" --bin aquatic -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_http_load_test -- $@
cargo run --profile "release-debug" --bin aquatic_http_load_test -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_udp_load_test -- $@
cargo run --profile "release-debug" --bin aquatic_udp_load_test -- $@

View file

@ -2,4 +2,4 @@
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_ws_load_test -- $@
cargo run --profile "release-debug" --bin aquatic_ws_load_test -- $@