• Robert Griesemer's avatar
    big: cleanups and performance tuning · 52cc0581
    Robert Griesemer authored
    - 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
    https://golang.org/cl/1133043
    52cc0581
nat.go 20.9 KB