From 781be29d7b8efe16254014b1bed036372a3ee4b3 Mon Sep 17 00:00:00 2001 From: Johanna Larsson Date: Tue, 22 Sep 2026 07:14:15 +0100 Subject: [PATCH] Speed up bcrypt and blowfish in tests Build optimized versions of bcrypt and blowfish to speed them up, referencing things like https://github.com/oxidecomputer/omicron/blob/main/Cargo.toml#L981-L982 Password hashing is not a dominating cost, so this doesn't have a significant impact on the overall time, but a lot of tests like `**tranquil-pds::legacy_2fa** **test_legacy_2fa_code_consumed_after_use**` speed up. It goes from 5.6s to 2.7s on my machine. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3c6a58d..90c37c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -170,3 +170,9 @@ lto = "fat" codegen-units = 1 debug = 1 strip = false + +[profile.dev.package.bcrypt] +opt-level = 3 + +[profile.dev.package.blowfish] +opt-level = 3