Inversed-Tech / eyelid

Private iris matching
Apache License 2.0
0 stars 0 forks source link

Optimise test builds to speed up tests #110

Closed teor2345 closed 3 months ago

teor2345 commented 3 months ago

This PR turns on the optimiser for dev and test builds.

Rust will still run debug assertions, overflow checks, and include debug info.

Follow Up

If this PR doesn't speed up the tests enough, we might need to implement #39 so we can find the slow methods.

teor2345 commented 3 months ago

This appears to also speed up the benchmarks, which is extremely weird. But not a bad thing.

teor2345 commented 3 months ago

This increases the speed of the tests by about 5 times (5 minutes down to less than a minute).