]> Cypherpunks repositories - gostls13.git/commit
strconv: put decimal on stack
authorRuss Cox <rsc@golang.org>
Thu, 25 Aug 2011 21:54:14 +0000 (17:54 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 25 Aug 2011 21:54:14 +0000 (17:54 -0400)
commitcb51fdc00756ca2960769eca0da57e0c6e244a1b
tree9f70af19e98d0a5012d6f451d8e3c8a61b170662
parentdd0b8e7975e6965008f377d1194c80bf33fc995a
strconv: put decimal on stack

This makes decimal a good test
case for the escape analysis.

With escape analysis:

benchmark                 old ns/op    new ns/op    delta
BenchmarkAtof64Decimal         1954          243  -87.56%
BenchmarkAtof64Float           2008          293  -85.41%
BenchmarkAtof64FloatExp       10106         8814  -12.78%
BenchmarkAtof64Big             5113         3486  -31.82%

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4861042
src/pkg/strconv/atof.go
src/pkg/strconv/atof_test.go
src/pkg/strconv/decimal.go
src/pkg/strconv/decimal_test.go
src/pkg/strconv/ftoa.go