]> Cypherpunks.ru repositories - gostls13.git/commit
math/big: removed more unnecessary string conversions
authorRobert Griesemer <gri@golang.org>
Fri, 25 Sep 2015 17:09:04 +0000 (10:09 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 25 Sep 2015 22:25:12 +0000 (22:25 +0000)
commite937eeeccdbf07df30ad4ea8ebd3cc20742b3200
treed2ed3b64779ef5c3cbea1a148af517219e5bf2df
parent8d701f092d5dba49a79fada561e90cfdb84f2bd1
math/big: removed more unnecessary string conversions

- renamed (nat) itoa to utoa (since that's what it is)
- added (nat) itoa that takes a sign parameter; this helps removing a few string copies
- used buffers instead of string+ in Rat conversions

Change-Id: I6b37a6b39557ae311cafdfe5c4a26e9246bde1a9
Reviewed-on: https://go-review.googlesource.com/14995
Reviewed-by: Alan Donovan <adonovan@google.com>
src/math/big/decimal.go
src/math/big/ftoa.go
src/math/big/intconv.go
src/math/big/nat_test.go
src/math/big/natconv.go
src/math/big/natconv_test.go
src/math/big/ratconv.go