mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +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" }
|
||||
|
||||
[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
|
||||
|
|
|
|||
2
TODO.md
2
TODO.md
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 -- $@
|
||||
|
|
|
|||
|
|
@ -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 -- $@
|
||||
|
|
|
|||
|
|
@ -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 -- $@
|
||||
|
|
|
|||
|
|
@ -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 -- $@
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
. ./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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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