gtank / ristretto255

Implements ristretto255, a fast prime-order group.
https://ristretto.group
BSD 3-Clause "New" or "Revised" License
98 stars 22 forks source link

Improve variable-base scalar multiplication #4

Closed gtank closed 5 years ago

terryding77 commented 5 years ago

Hi, I tested ScalarMulti with my code, and find there has too many temporary variables in ExtendedGroupElement Add and Double functions, so it takes huge memory(10*5*uint64=400B for Add func, 8*5*uint64=320B for Double func) in Benchmark test and called GC. Maybe we can remove some temporary variables for improving performance. image