diff options
| author | Robert Griesemer <gri@golang.org> | 2010-04-30 21:25:48 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2010-04-30 21:25:48 -0700 |
| commit | 58e77990ba20494b8a4837f3668f8f03281e5406 (patch) | |
| tree | b4dc96c2c2b707063c3557bc6b2e92645dfb6f62 /src/pkg/container/vector/stringvector.go | |
| parent | 161b44c76a78ea2b2f04d8c3ba8c8292edac54b4 (diff) | |
| download | go-58e77990ba20494b8a4837f3668f8f03281e5406.tar.xz | |
big: use fast shift routines
- fixed a couple of bugs in the process
(shift right was incorrect for negative numbers)
- added more tests and made some tests more robust
- changed pidigits back to using shifts to multiply
by 2 instead of add
This improves pidigit -s -n 10000 by approx. 5%:
user 0m6.496s (old)
user 0m6.156s (new)
R=rsc
CC=golang-dev
https://golang.org/cl/963044
Diffstat (limited to 'src/pkg/container/vector/stringvector.go')
0 files changed, 0 insertions, 0 deletions
