mirror of
https://github.com/status-im/nim-bncurve.git
synced 2025-02-20 00:38:21 +00:00
* prefer stew/staticfor * cleanup pragmas * unroll a few more things These simplifications also bring a nice little 10-15% perf boost: ``` arnetheduck@praeceps:~/status/nimbus-eth1/vendor/nim-bncurve$ /home/arnetheduck/status/nimbus-eth1/vendor/nim-bncurve/benchmarks/bench G1 Jacobian add: 578 ns G1 toAffine: 3067 ns G2 Jacobian add: 3141 ns G2 toAffine: 3772 ns G1 Jacobian mul: 191442 ns G2 Jacobian mul: 819047 ns Pairing: 2111668 ns arnetheduck@praeceps:~/status/nimbus-eth1/vendor/nim-bncurve$ /home/arnetheduck/status/nimbus-eth1/vendor/nim-bncurve/benchmarks/bench G1 Jacobian add: 497 ns G1 toAffine: 2774 ns G2 Jacobian add: 2701 ns G2 toAffine: 3461 ns G1 Jacobian mul: 147267 ns G2 Jacobian mul: 633992 ns Pairing: 1816686 ns ```