1
0
mirror of https://github.com/golang/go synced 2024-10-04 16:21:22 -06:00
go/src/pkg/strconv
Rémy Oudompheng 0575cd9de4 strconv: faster FormatFloat(x, *, -1, 64) using Grisu3 algorithm.
The implementation is similar to the one from the double-conversion
library used in the Chrome V8 engine.

                            old ns/op   new ns/op  speedup
BenchmarkAppendFloatDecimal      591         480      1.2x
BenchmarkAppendFloat            2956         486      6.1x
BenchmarkAppendFloatExp        10622         503     21.1x
BenchmarkAppendFloatNegExp     40343         483     83.5x
BenchmarkAppendFloatBig         2798         664      4.2x

See F. Loitsch, ``Printing Floating-Point Numbers Quickly and
Accurately with Integers'', Proceedings of the ACM, 2010.

R=rsc
CC=golang-dev, remy
https://golang.org/cl/5502079
2012-01-13 23:24:33 +01:00
..
atob_test.go strconv: new API 2011-12-05 15:48:21 -05:00
atob.go strconv: include package and function name in error strings 2011-12-13 10:42:05 -08:00
atof_test.go strconv: fix bug in extended-float based conversion. 2011-12-22 17:28:35 -05:00
atof.go strconv: implement faster parsing of decimal numbers. 2011-12-19 16:45:51 -05:00
atoi_test.go strconv: include package and function name in error strings 2011-12-13 10:42:05 -08:00
atoi.go strconv: include package and function name in error strings 2011-12-13 10:42:05 -08:00
decimal_test.go strconv: make Ftoa faster 2011-11-15 12:17:25 -05:00
decimal.go strconv: reduce buffer size for multi-precision decimals. 2011-12-19 15:03:53 -05:00
extfloat.go strconv: faster FormatFloat(x, *, -1, 64) using Grisu3 algorithm. 2012-01-13 23:24:33 +01:00
fp_test.go strconv: new API 2011-12-05 15:48:21 -05:00
ftoa_test.go strconv: faster FormatFloat(x, *, -1, 64) using Grisu3 algorithm. 2012-01-13 23:24:33 +01:00
ftoa.go strconv: faster FormatFloat(x, *, -1, 64) using Grisu3 algorithm. 2012-01-13 23:24:33 +01:00
internal_test.go strconv: make Ftoa faster 2011-11-15 12:17:25 -05:00
itoa_test.go strconv: some allocation tests 2011-12-13 14:49:26 -08:00
itoa.go strconv: slightly faster int conversion for GOARCH=386 2011-12-14 11:14:10 -08:00
Makefile strconv: implement faster parsing of decimal numbers. 2011-12-19 16:45:51 -05:00
quote_test.go strconv: return ErrSyntax when unquoting illegal octal sequences. This 2012-01-09 19:55:18 -05:00
quote.go strconv: return ErrSyntax when unquoting illegal octal sequences. This 2012-01-09 19:55:18 -05:00
testfp.txt mv src/lib to src/pkg 2009-06-09 09:53:44 -07:00