Inversed-Tech / eyelid

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

Make `Coeff` into an associated type of the `PolyConf` trait #79

Closed teor2345 closed 2 months ago

teor2345 commented 2 months ago

This PR makes a lot of search-and-replace code changes, so it will cause merge conflicts. Let's merge it soon.

It changes Coeff from a type to an associated type of the PolyConf trait. As part of that change, the static zero constant becomes a trait function that returns a reference to that constant. YASHE also needs some specific conversions, they are added as trait bounds.

teor2345 commented 2 months ago

Benchmark

Benchmark suite Current: a3b178d Previous: d942cc7 Ratio

This PR doesn't change performance at all. (Everything is within 1% normal variation.)