]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] math/big: fix superpolynomial complexity in Karatsuba algorithm.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 13 Jun 2012 20:23:42 +0000 (16:23 -0400)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 13 Jun 2012 20:23:42 +0000 (16:23 -0400)
commit778529bd586b01b67e0d85627ec8e7ad18a7b509
tree2d6b2e2d6d1c9560efe787cf1cde65fded06a798
parent3cbadbd631f479a298762273f910ae1e7ea5442e
[release-branch.go1] math/big: fix superpolynomial complexity in Karatsuba algorithm.

««« backport 7873186d5774
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