• Rémy Oudompheng's avatar
    strconv: faster FormatFloat(x, *, -1, 64) using Grisu3 algorithm. · 0575cd9d
    Rémy Oudompheng authored
    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
    0575cd9d
Name
Last commit
Last update
..
Makefile Loading commit data...
atob.go Loading commit data...
atob_test.go Loading commit data...
atof.go Loading commit data...
atof_test.go Loading commit data...
atoi.go Loading commit data...
atoi_test.go Loading commit data...
decimal.go Loading commit data...
decimal_test.go Loading commit data...
extfloat.go Loading commit data...
fp_test.go Loading commit data...
ftoa.go Loading commit data...
ftoa_test.go Loading commit data...
internal_test.go Loading commit data...
itoa.go Loading commit data...
itoa_test.go Loading commit data...
quote.go Loading commit data...
quote_test.go Loading commit data...
testfp.txt Loading commit data...