go/src/strconv
yangwenmai 7af821a661 all: faster midpoint computation in binary search
On my machine (3.1 GHz Quad-Core Intel Core i7, macOS 10.15.7 10.15.7), go 1.15.6

benchstat:
name          old time/op  new time/op  delta
SearchInts-8  20.3ns ± 1%  16.6ns ± 6%  -18.37%  (p=0.000 n=9+10)

Change-Id: I346e5955fd6df6ce10254b22267dbc8d5a2b16c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/279439
Reviewed-by: Ben Shi <powerman1st@163.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Robert Griesemer <gri@golang.org>
2021-02-23 01:37:31 +00:00
..
testdata
atob.go
atob_test.go
atoc.go strconv: revert ParseFloat/ParseComplex error on incorrect bitSize 2020-11-03 23:05:51 +00:00
atoc_test.go strconv: revert ParseFloat/ParseComplex error on incorrect bitSize 2020-11-03 23:05:51 +00:00
atof.go strconv: revert ParseFloat/ParseComplex error on incorrect bitSize 2020-11-03 23:05:51 +00:00
atof_test.go strconv: revert ParseFloat/ParseComplex error on incorrect bitSize 2020-11-03 23:05:51 +00:00
atoi.go strconv: add ParseComplex and FormatComplex 2020-05-08 17:31:38 +00:00
atoi_test.go strconv: add Unwrap to custom error types 2019-09-30 21:07:51 +00:00
bytealg.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
bytealg_bootstrap.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
ctoa.go strconv: add ParseComplex and FormatComplex 2020-05-08 17:31:38 +00:00
ctoa_test.go strconv: fix incorrect bit size in ParseComplex; add tests 2020-10-30 00:13:25 +00:00
decimal.go
decimal_test.go
doc.go
eisel_lemire.go [dev.regabi] strconv: add to bootstrap packages 2020-11-24 19:42:42 +00:00
example_test.go strconv: reformat and tidy comments in example 2019-11-11 19:56:33 +00:00
export_test.go
extfloat.go strconv: remove extfloat.go atof code path 2020-10-29 03:06:12 +00:00
fp_test.go
ftoa.go strconv: fix rounding in FormatFloat fallback path 2019-05-23 15:41:19 +00:00
ftoa_test.go strconv: fix incorrect bit size in ParseComplex; add tests 2020-10-30 00:13:25 +00:00
internal_test.go strconv: implement parseFloatPrefix returning no. of bytes consumed 2020-04-30 03:50:03 +00:00
isprint.go unicode: upgrade to Unicode 13.0.0 2020-08-20 13:41:13 +00:00
itoa.go
itoa_test.go
makeisprint.go all: faster midpoint computation in binary search 2021-02-23 01:37:31 +00:00
quote.go all: faster midpoint computation in binary search 2021-02-23 01:37:31 +00:00
quote_test.go all: avoid string(i) where i has type int 2020-02-26 04:38:19 +00:00
strconv_test.go strconv: pre-allocate in appendQuotedWith 2019-04-18 04:30:46 +00:00