15 Jun 2012 23:29
code review 6303087: strconv: extend Grisu3 algorithm to float32. (issue 6303087)
Reviewers: golang-dev_googlegroups.com, Message: Hello golang-dev@... (cc: golang-dev@..., remy@...), I'd like you to review this change to https://go.googlecode.com/hg/ Description: strconv: extend Grisu3 algorithm to float32. Also improve extfloat.Normalize to obtain a modest performance gain in parsing. benchmark old ns/op new ns/op delta BenchmarkAppendFloat32Decimal 353 467 +32.29% BenchmarkAppendFloat32 1292 487 -62.31% BenchmarkAppendFloat32Exp 2572 480 -81.34% BenchmarkAppendFloat32NegExp 5092 480 -90.57% BenchmarkAtof64Decimal 72 72 -0.96% BenchmarkAtof64Float 92 92 +0.43% BenchmarkAtof64FloatExp 199 182 -8.54% BenchmarkAtof64Big 314 314 +0.00% BenchmarkAtof64RandomBits 528 417 -21.02% BenchmarkAtof64RandomFloats 291 296 +1.72% BenchmarkAtof32Decimal 71 71 -0.56% BenchmarkAtof32Float 83 83 +0.00% BenchmarkAtof32FloatExp 211 187 -11.37%(Continue reading)
RSS Feed