go/src
Robert Griesemer b4be65bc7f math/big: simplify fast string conversion
- use slice ops for convertWords instead of lo/hi boundaries
- always compute leading zeroes (simplifies logic significantly),
  but remove them once, at the end (since leafSize is small, the
  worst-case scenario is not adding significant overhead)
- various comment cleanups (specifically, replaced direct -> iterative,
  and indirect -> recursive)
- slightly faster overall for -bench=String

(This CL incorporates the changes re: my comments to CL 5418047
https://golang.org/cl/5418047/ )

benchmark                          old ns/op    new ns/op    delta
big.BenchmarkString10Base2               519          527   +1.54%
big.BenchmarkString100Base2             2279         2158   -5.31%
big.BenchmarkString1000Base2           18475        17323   -6.24%
big.BenchmarkString10000Base2         178248       166219   -6.75%
big.BenchmarkString100000Base2       1548494      1431587   -7.55%
big.BenchmarkString10Base8               415          422   +1.69%
big.BenchmarkString100Base8             1025          978   -4.59%
big.BenchmarkString1000Base8            6822         6428   -5.78%
big.BenchmarkString10000Base8          64598        61065   -5.47%
big.BenchmarkString100000Base8        593788       549150   -7.52%
big.BenchmarkString10Base10              654          645   -1.38%
big.BenchmarkString100Base10            1863         1835   -1.50%
big.BenchmarkString1000Base10          12099        11981   -0.98%
big.BenchmarkString10000Base10         57601        56888   -1.24%
big.BenchmarkString100000Base10     20123120     19827890   -1.47%
big.BenchmarkString10Base16              358          362   +1.12%
big.BenchmarkString100Base16             815          776   -4.79%
big.BenchmarkString1000Base16           4710         4421   -6.14%
big.BenchmarkString10000Base16         43938        40968   -6.76%
big.BenchmarkString100000Base16       406307       373930   -7.97%

R=michael.jones, mtj
CC=golang-dev
https://golang.org/cl/5432090
2012-01-09 11:20:09 -08:00
..
cmd undo CL 5504108 / 0edee03791f4 2012-01-09 09:45:08 -08:00
lib9 lib9: fix windows build 2011-11-07 14:16:00 -05:00
libbio
libmach os: OS-dependent bits to support NetBSD. 2011-12-15 12:19:19 -05:00
pkg math/big: simplify fast string conversion 2012-01-09 11:20:09 -08:00
Make.ccmd
Make.clib
Make.cmd
Make.common
Make.inc ld: allow for IMAGE_REL_AMD64_ADDR32NB relocation type 2011-12-16 10:32:14 +11:00
Make.pkg testing: use flag.Duration for -timeout flag. 2011-12-25 16:07:05 +11:00
all-qemu.bash
all.bash
buildinfo.sh build: fix build 2011-12-20 17:00:52 -05:00
buildscript.sh buildscript: make script safer, same output on Windows 2011-12-21 15:58:05 -05:00
buildscript_darwin_386.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_darwin_amd64.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_freebsd_386.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_freebsd_amd64.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_linux_386.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_linux_amd64.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_linux_arm.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_netbsd_386.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_netbsd_amd64.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_openbsd_386.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_openbsd_amd64.sh syscall: Linux-only support for parent death signal 2012-01-09 21:37:46 +09:00
buildscript_plan9_386.sh fix build: updated build scripts 2011-12-22 15:37:09 -08:00
buildscript_windows_386.sh fix build: updated build scripts 2011-12-22 15:37:09 -08:00
buildscript_windows_amd64.sh fix build: correct build scripts 2011-12-22 15:52:33 -08:00
clean.bash test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00
env.bash build: use go command during build 2011-12-20 16:50:13 -05:00
make.bash make.bash: remove old dregs 2012-01-05 14:17:32 +11:00
quietgcc.bash
run.bash cmd/go: many improvements 2011-12-21 07:47:12 -05:00
sudo.bash
version.bash