You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With lower values of t there are some tricks that can be applied to reduce gas cost.
Use add instead of addmod in mds multiplication and round constant phases. bn254 base field is suitable for deferred reductions upto 5 since 2**256 / Q ~= 5.29
Use stack intensively by storing some of matrix cells at stack.
Applying these for (3, 8, 55) setup, I'm observing reduction of gas cost from 35k to 21k. Here you can check the example.
The text was updated successfully, but these errors were encountered:
With lower values of
t
there are some tricks that can be applied to reduce gas cost.add
instead ofaddmod
in mds multiplication and round constant phases. bn254 base field is suitable for deferred reductions upto 5 since2**256 / Q ~= 5.29
Applying these for
(3, 8, 55)
setup, I'm observing reduction of gas cost from 35k to 21k. Here you can check the example.The text was updated successfully, but these errors were encountered: