aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-10-06 22:42:20 -0400
committerRuss Cox <rsc@golang.org>2016-10-10 18:50:23 +0000
commit3a9072829e7d315ecda030281b622632c1bbe1b6 (patch)
treee22a895267181fc3e2bdc170f19129d4d9f19cb3 /src/runtime/testdata
parent68331750dac5a38c5158f57ab19e3e99d11a59e3 (diff)
downloadgo-3a9072829e7d315ecda030281b622632c1bbe1b6.tar.xz
math/big: make division faster
- Add new BenchmarkQuoRem. - Eliminate allocation in divLarge nat pool - Unroll mulAddVWW body 4x - Remove some redundant slice loads in divLarge name old time/op new time/op delta QuoRem-8 2.18µs ± 1% 1.93µs ± 1% -11.38% (p=0.000 n=19+18) The starting point in the comparison here is Cherry's pending CL to turn mulWW and divWW into intrinsics. The optimizations in divLarge work best because all the function calls are gone. The effect of this CL is not as large if you don't assume Cherry's CL. Change-Id: Ia6138907489c5b9168497912e43705634e163b35 Reviewed-on: https://go-review.googlesource.com/30613 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/testdata')
0 files changed, 0 insertions, 0 deletions