rustpq / pqcrypto

Rust Post-Quantum cryptography
212 stars 38 forks source link

Should probably cache feature detection #23

Open thomwiggers opened 2 years ago

thomwiggers commented 2 years ago

We're currently simply checking cpuid each time.

tarcieri commented 2 years ago

Might be helpful, depending on which CPUs you need to target: https://crates.io/crates/cpufeatures

thomwiggers commented 2 years ago

I rather meant the dispatch to the portable or the accelerated implementation; probably we want to do something with AtomicPtr.