1
0
mirror of https://github.com/golang/go synced 2024-09-30 18:38:33 -06:00
go/src
Marvin Stenger 3c0bf181b7 strconv: simplify and optimize Itoa(small)
Use substring of digits for values < 10.

name                 old time/op  new time/op  delta
FormatIntSmall/7-4   4.54ns ± 1%  3.70ns ± 1%  -18.41%  (p=0.000 n=18+17)
FormatIntSmall/42-4  4.54ns ± 1%  4.13ns ± 1%   -9.02%  (p=0.000 n=16+18)

Change-Id: I0b521b563c13ef88aa2701049fa4a43760e884af
Reviewed-on: https://go-review.googlesource.com/111285
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-05-03 18:07:02 +00:00
..
archive archive/zip: avoid data descriptor when writing directories 2018-05-02 23:34:50 +00:00
bufio bufio: document ReadFrom/WriteTo calls to underlying methods 2018-03-28 22:21:52 +00:00
builtin
bytes bytes, strings: improve EqualFold fast version for ASCII 2018-05-01 18:52:19 +00:00
cmd cmd/compile: shrink liveness maps 2018-05-03 17:31:29 +00:00
compress compress/flate: optimize huffSym 2018-04-17 22:37:49 +00:00
container container/heap: fix comments style 2018-04-11 20:11:09 +00:00
context context: avoid defer in the cancelCtx.Err method 2018-04-15 21:35:53 +00:00
crypto crypto/rand, crypto/x509: add js/wasm architecture 2018-05-03 18:00:24 +00:00
database/sql database/sql: trivial documentation fixes 2018-05-01 14:43:13 +00:00
debug all: skip unsupported tests for js/wasm 2018-04-30 19:39:18 +00:00
encoding all: skip unsupported tests for js/wasm 2018-04-30 19:39:18 +00:00
errors
expvar all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
flag flag: correct zero values when printing defaults 2018-04-01 20:17:22 +00:00
fmt fmt: make %v doc for compound objects consistent 2018-04-17 23:47:44 +00:00
go syscall/js: add package 2018-05-03 18:00:07 +00:00
hash
html text/template: copy Decl field when copying PipeNode 2018-04-10 14:26:58 +00:00
image all: fix non-standard "DO NOT EDIT" comments for generated files 2018-03-10 17:50:11 +00:00
index/suffixarray
internal internal/cpu: remove platform specific prefix from cpu hwcap variables 2018-05-01 15:50:19 +00:00
io io/ioutil: change TempFile prefix to a pattern 2018-04-12 20:00:25 +00:00
log all: skip unsupported tests for js/wasm 2018-04-30 19:39:18 +00:00
math math/bits: move tests into their own package 2018-05-01 15:33:01 +00:00
mime mime: add wasm architecture 2018-04-13 20:20:12 +00:00
net net, syscall: make ECONNRESET/ECONNABORTED only temporary for Accept 2018-05-01 14:50:33 +00:00
os os: remove superfluous comments 2018-05-02 14:41:57 +00:00
path path/filepath: fix Win32 tests missing 'chcp' 2018-04-26 18:25:15 +00:00
plugin
reflect reflect: define MyBuffer more locally in TestImplicitMapConversion 2018-04-18 12:47:39 +00:00
regexp regexp: use sync.Pool to cache regexp.machine objects 2018-04-03 16:03:19 +00:00
runtime runtime: convert g.waitreason from string to uint8 2018-05-03 17:04:22 +00:00
sort sort: fix typo in comment 2018-04-22 22:32:11 +00:00
strconv strconv: simplify and optimize Itoa(small) 2018-05-03 18:07:02 +00:00
strings bytes, strings: improve EqualFold fast version for ASCII 2018-05-01 18:52:19 +00:00
sync sync: hide test of misuse of Cond from vet 2018-04-25 02:49:46 +00:00
syscall syscall/js: add package 2018-05-03 18:00:07 +00:00
testing testing: fix racey access to t.failed 2018-05-02 17:51:26 +00:00
text all: skip unsupported tests for js/wasm 2018-04-30 19:39:18 +00:00
time time: increase test coverage for Time.Sub 2018-04-16 21:14:40 +00:00
unicode
unsafe
vendor/golang_org/x net/http: omit forbidden Trailer headers from response 2018-04-16 17:44:41 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash src/run.bash: remove some trailing whitespace 2018-04-01 16:12:47 +00:00
run.bat
run.rc