aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exec/exec.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-06-01 14:17:00 -0700
committerRobert Griesemer <gri@golang.org>2011-06-01 14:17:00 -0700
commitce2701b2b0bafba079445100a7b220404a4211ad (patch)
tree0d531ce7605522ff669974a09782b59fab250f1a /src/pkg/exec/exec.go
parent16dbf2182cf1f091c22df07d215586dd38fdbb64 (diff)
downloadgo-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