diff --git a/Cargo.toml b/Cargo.toml index c72e55f..2ef5517 100644 --- a/Cargo.toml +++ b/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 diff --git a/TODO.md b/TODO.md index a4e62ec..e82210f 100644 --- a/TODO.md +++ b/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 diff --git a/scripts/run-aquatic-http-private.sh b/scripts/run-aquatic-http-private.sh index 5f7d9d8..0a9ed31 100755 --- a/scripts/run-aquatic-http-private.sh +++ b/scripts/run-aquatic-http-private.sh @@ -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 -- $@ diff --git a/scripts/run-aquatic-http.sh b/scripts/run-aquatic-http.sh index 495a259..e693fca 100755 --- a/scripts/run-aquatic-http.sh +++ b/scripts/run-aquatic-http.sh @@ -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 -- $@ diff --git a/scripts/run-aquatic-udp.sh b/scripts/run-aquatic-udp.sh index 256322f..0814661 100755 --- a/scripts/run-aquatic-udp.sh +++ b/scripts/run-aquatic-udp.sh @@ -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 -- $@ diff --git a/scripts/run-aquatic-ws.sh b/scripts/run-aquatic-ws.sh index 40be253..297c71d 100755 --- a/scripts/run-aquatic-ws.sh +++ b/scripts/run-aquatic-ws.sh @@ -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 -- $@ diff --git a/scripts/run-aquatic.sh b/scripts/run-aquatic.sh index fac0706..1ce91c4 100755 --- a/scripts/run-aquatic.sh +++ b/scripts/run-aquatic.sh @@ -2,4 +2,4 @@ . ./scripts/env-native-cpu-without-avx-512 -cargo run --release --bin aquatic -- $@ +cargo run --profile "release-debug" --bin aquatic -- $@ diff --git a/scripts/run-load-test-http.sh b/scripts/run-load-test-http.sh index 86edc66..58bfe4e 100755 --- a/scripts/run-load-test-http.sh +++ b/scripts/run-load-test-http.sh @@ -2,4 +2,4 @@ . ./scripts/env-native-cpu-without-avx-512 -cargo run --release --bin aquatic_http_load_test -- $@ \ No newline at end of file +cargo run --profile "release-debug" --bin aquatic_http_load_test -- $@ \ No newline at end of file diff --git a/scripts/run-load-test-udp.sh b/scripts/run-load-test-udp.sh index 3946878..b307628 100755 --- a/scripts/run-load-test-udp.sh +++ b/scripts/run-load-test-udp.sh @@ -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 -- $@ diff --git a/scripts/run-load-test-ws.sh b/scripts/run-load-test-ws.sh index 823c195..79dd720 100755 --- a/scripts/run-load-test-ws.sh +++ b/scripts/run-load-test-ws.sh @@ -2,4 +2,4 @@ . ./scripts/env-native-cpu-without-avx-512 -cargo run --release --bin aquatic_ws_load_test -- $@ \ No newline at end of file +cargo run --profile "release-debug" --bin aquatic_ws_load_test -- $@ \ No newline at end of file