• Kyle Consalus's avatar
    Trivial optimization. · 2db47c90
    Kyle Consalus authored
    	Cached string indexing in inner loop of Btoui64.
    
        Before:
        strconv_test.BenchmarkAtoi   5000000           309 ns/op
        strconv_test.BenchmarkAtoiNeg    5000000           325 ns/op
        strconv_test.BenchmarkAtoi64     5000000           465 ns/op
        strconv_test.BenchmarkAtoi64Neg  5000000           469 ns/op
    
        After:
        strconv_test.BenchmarkAtoi  10000000           182 ns/op
        strconv_test.BenchmarkAtoiNeg   10000000           193 ns/op
        strconv_test.BenchmarkAtoi64    10000000           251 ns/op
        strconv_test.BenchmarkAtoi64Neg 10000000           258 ns/op
    
    R=golang-dev, gri
    CC=golang-dev
    https://golang.org/cl/1227042
    2db47c90
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...
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...