diff options
| author | Robert Griesemer <gri@golang.org> | 2011-06-01 14:17:00 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-06-01 14:17:00 -0700 |
| commit | ce2701b2b0bafba079445100a7b220404a4211ad (patch) | |
| tree | 0d531ce7605522ff669974a09782b59fab250f1a /src/pkg/exec/exec.go | |
| parent | 16dbf2182cf1f091c22df07d215586dd38fdbb64 (diff) | |
| download | go-ce2701b2b0bafba079445100a7b220404a4211ad.tar.xz | |
big: ~8x faster number scanning
- better number scanning algorithm
- fixed a couple of bugs related to base interpretation
- added scan benchmark
- added more test cases and made tests more precise
- introduced Int.scan method matching nat.scan
- refactored Int.Scan; now uses int.scan
- refactored Int.SetString; now uses int.scan
There is more potential, this was a fairly simple change.
gotest -test.bench="ScanPi" before/after (best of 3 runs):
big.BenchmarkScanPi 1000 2024900 ns/op
big.BenchmarkScanPi 10000 257540 ns/op
R=chickencha
CC=golang-dev, rsc
https://golang.org/cl/4527089
Diffstat (limited to 'src/pkg/exec/exec.go')
0 files changed, 0 insertions, 0 deletions
