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
chore: replace blake2b implementation by golang.org/x/crypto
In 2016-12-13 d8e61c69ab46ca38328da2f4995abaf93b252290 golang.org/x/crypto gained a blake2b AVX implementation.
There is also an AVX2 one.
It is faster than what we are using right now.
This commit allows for faster code and remove a dependency.
For future improvements (like NEON) /x/crypto seems more maintained (it isn't an archived repo).
benchmark old ns/op new ns/op delta
BenchmarkSum128-12 252 140 -44.35%
BenchmarkSum1K-12 1221 986 -19.24%
benchmark old MB/s new MB/s speedup
BenchmarkSum128-12 507.37 911.98 1.80x
BenchmarkSum1K-12 838.70 1038.43 1.24x
0 commit comments