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
The current fixed window naf used in the pippenger never produces zeros in its representation, even though the code handles them fine and they're faster. The existing representation can be converted into one where there are more zeros by setting a coefficient to zero if it is 1 or -1 and the proceeding digit is strictly negative or strictly positive respectively.
For small windows (where pippenger is already slower than strauss) it's a pretty big speedup. For realistic window sizes it probably isn't a big speedup, but free performance is good.
The text was updated successfully, but these errors were encountered:
…ation
ec0a7b3 Don't touch leading zeros in wnaf_fixed. (Jonas Nick)
9e36d1b Fix bug in wnaf_fixed where the wnaf array is not completely zeroed when given a 0 scalar. (Jonas Nick)
96f68a0 Don't invert scalar in wnaf_fixed when it is even because a caller might intentionally give a scalar with many leading zeros. (Jonas Nick)
6dbb007 Increase sparsity of pippenger fixed window naf representation (Jonas Nick)
Pull request description:
Fixes#506
Tree-SHA512: 49a237a7d09c0c376ba4e6b1f522b9aff2517e420dfef9df810fd5ba920e0b98be8fe3f730b32e41b4aef475bc4cf3b13220024bd8d6f40c2744e6f392ff97a8
The current fixed window naf used in the pippenger never produces zeros in its representation, even though the code handles them fine and they're faster. The existing representation can be converted into one where there are more zeros by setting a coefficient to zero if it is 1 or -1 and the proceeding digit is strictly negative or strictly positive respectively.
For small windows (where pippenger is already slower than strauss) it's a pretty big speedup. For realistic window sizes it probably isn't a big speedup, but free performance is good.
The text was updated successfully, but these errors were encountered: