mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-09-25 11:44:15 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user