diff options
author | Robert Griesemer <gri@golang.org> | 2010-05-08 13:52:36 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-05-08 13:52:36 -0700 |
commit | 6eadf96ce8f9000974ba5786dc7bede1782e839c (patch) | |
tree | 04cbedc170703bca50085961bc08e802879ad5d2 /src/pkg/json/decode_test.go | |
parent | 83caaf6665cb3f17b9eada6f94b932afcae2fda2 (diff) | |
download | golang-6eadf96ce8f9000974ba5786dc7bede1782e839c.tar.gz |
big: cleanups and performance tuning
- removed last argument (n) from all core arithmetic routines;
instead, use the length of the result
- simplified nat.make implementation and chose a better capacity
for new values, removed a TODO in the process
Changing the constant e from 1 (old) to 4 (new) improved
pidigits -s -n 10000 by ~9% (on a 3.06GHz Intel Core 2 Duo):
user 0m3.882s (old)
user 0m3.549s (new)
R=rsc
CC=golang-dev
http://codereview.appspot.com/1133043
Diffstat (limited to 'src/pkg/json/decode_test.go')
0 files changed, 0 insertions, 0 deletions