]> Cypherpunks repositories - gostls13.git/commit
math/big: fix superpolynomial complexity in Karatsuba algorithm.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 4 May 2012 17:05:26 +0000 (19:05 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Fri, 4 May 2012 17:05:26 +0000 (19:05 +0200)
commit018c60bd8f2447ee1426568707d7179623dac552
tree51882937ab93b734a17fd6e6f18f24f0f475e4ae
parentccdca2cd6b84f290b0cf8709b11353e58cafdba9
math/big: fix superpolynomial complexity in Karatsuba algorithm.

benchmark                     old ns/op    new ns/op    delta
BenchmarkExp3Power0x10              732          734   +0.27%
BenchmarkExp3Power0x40              834          836   +0.24%
BenchmarkExp3Power0x100            1600         1579   -1.31%
BenchmarkExp3Power0x400            3478         3417   -1.75%
BenchmarkExp3Power0x1000          19388        19229   -0.82%
BenchmarkExp3Power0x4000         160274       156881   -2.12%
BenchmarkExp3Power0x10000       1552050      1372058  -11.60%
BenchmarkExp3Power0x40000      27328710     15216920  -44.32%
BenchmarkExp3Power0x100000    612349000    131407100  -78.54%
BenchmarkExp3Power0x400000  44073524000   1122195000  -97.45%

R=golang-dev, mtj, gri, rsc
CC=golang-dev, remy
https://golang.org/cl/6176043
src/pkg/math/big/nat.go
src/pkg/math/big/nat_test.go