]> Cypherpunks repositories - gostls13.git/commit
math/big: avoid some allocation in Exp
authorAdam Langley <agl@golang.org>
Mon, 1 Oct 2012 21:31:35 +0000 (17:31 -0400)
committerAdam Langley <agl@golang.org>
Mon, 1 Oct 2012 21:31:35 +0000 (17:31 -0400)
commit9070d5759ff2d9b99dbe3d44c26300b54ab021e8
tree6b9fd3c4290370294db78af34fe17e387554e72b
parent5a03cd56a18302b24ef7b6110912cd2356360165
math/big: avoid some allocation in Exp

benchmark                        old ns/op    new ns/op    delta
BenchmarkRSA1024Decrypt             745686       644964  -13.51%
BenchmarkRSA2048Decrypt            5517318      5049200   -8.48%
Benchmark3PrimeRSA2048Decrypt      3767386      3288048  -12.72%

R=gri
CC=gobot, golang-dev
https://golang.org/cl/6566043
src/pkg/math/big/nat.go