mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Switch to thin LTO; add Cargo profile release-debug
This commit is contained in:
parent
9f8f80a17b
commit
44b50204e2
10 changed files with 16 additions and 15 deletions
13
Cargo.toml
13
Cargo.toml
|
|
@ -40,13 +40,16 @@ aquatic_ws_protocol = { path = "aquatic_ws_protocol" }
|
||||||
membarrier = { git = "https://github.com/glommer/membarrier-rs.git", branch = "issue-22" }
|
membarrier = { git = "https://github.com/glommer/membarrier-rs.git", branch = "issue-22" }
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
debug = true
|
debug = false
|
||||||
lto = true
|
lto = "thin"
|
||||||
|
opt-level = 3
|
||||||
|
|
||||||
[profile.test]
|
[profile.test]
|
||||||
opt-level = 3
|
inherits = "release-debug"
|
||||||
|
|
||||||
[profile.bench]
|
[profile.bench]
|
||||||
|
inherits = "release-debug"
|
||||||
|
|
||||||
|
[profile.release-debug]
|
||||||
|
inherits = "release"
|
||||||
debug = true
|
debug = true
|
||||||
opt-level = 3
|
|
||||||
lto = true
|
|
||||||
|
|
|
||||||
2
TODO.md
2
TODO.md
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
## Medium priority
|
## Medium priority
|
||||||
|
|
||||||
* Use thin LTO?
|
|
||||||
* Add release-debug profile?
|
|
||||||
* quit whole program if any thread panics
|
* quit whole program if any thread panics
|
||||||
* config: fail on unrecognized keys?
|
* config: fail on unrecognized keys?
|
||||||
* Run cargo-deny in CI
|
* Run cargo-deny in CI
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic_http_private -- $@
|
cargo run --profile "release-debug" --bin aquatic_http_private -- $@
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic_http -- $@
|
cargo run --profile "release-debug" --bin aquatic_http -- $@
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic_udp -- $@
|
cargo run --profile "release-debug" --bin aquatic_udp -- $@
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic_ws -- $@
|
cargo run --profile "release-debug" --bin aquatic_ws -- $@
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic -- $@
|
cargo run --profile "release-debug" --bin aquatic -- $@
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./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 -- $@
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./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 -- $@
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./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 -- $@
|
||||||
Loading…
Add table
Add a link
Reference in a new issue