1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:21:22 -06:00
go/src
Martin Möhrmann 819e0b29bb strings: improve explode and correct comment
Merges explodetests into splittests which already contain
some of the tests that cover explode.

Adds a test to cover the utf8.RuneError branch in explode.

name      old time/op  new time/op  delta
Split1-2  14.9ms ± 0%  14.2ms ± 0%  -4.06%  (p=0.000 n=47+49)

Change-Id: I00f796bd2edab70e926ea9e65439d820c6a28254
Reviewed-on: https://go-review.googlesource.com/21609
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-04-13 04:54:03 +00:00
..
archive all: delete dead test code 2016-03-21 07:10:08 +00:00
bufio all: replace magic 0x80 with named constant utf8.RuneSelf 2016-04-10 15:15:57 +00:00
builtin
bytes bytes: add ContainsRune 2016-04-08 20:24:57 +00:00
cmd cmd/compile: teach CSE that new objects are bespoke 2016-04-13 02:11:56 +00:00
compress compress/flate: improve short writer error test 2016-04-10 15:59:00 +00:00
container
context context: attempt to deflake timing tests 2016-04-11 23:15:02 +00:00
crypto all: standardize RFC mention format 2016-04-12 21:07:52 +00:00
database/sql all: delete dead non-test code 2016-03-25 06:28:13 +00:00
debug debug/gosym: accept PC quantum of 2 (for s390x) 2016-04-12 15:41:21 +00:00
encoding all: replace magic 0x80 with named constant utf8.RuneSelf 2016-04-10 15:15:57 +00:00
errors
expvar expvar: Ensure strings are written as valid JSON. 2016-04-06 03:52:39 +00:00
flag
fmt fmt: hold on to all free buffers, regardless of size 2016-04-03 06:20:37 +00:00
go cmd/compile: move compiler-specific flags into compiler-spec. export data section 2016-04-12 18:57:51 +00:00
hash hash/crc32: invert build tags for go implementation 2016-04-12 16:30:25 +00:00
html html/template: add examples of loading templates from files 2016-04-13 02:28:28 +00:00
image image/color: optimize YCbCrToRGB 2016-04-12 23:04:26 +00:00
index/suffixarray
internal internal/trace: fix int overflow in timestamps 2016-04-12 07:25:11 +00:00
io io: document WriteString calls Write exactly once 2016-04-12 01:03:51 +00:00
log
math math/big: re-use memory in Int.GCD 2016-04-07 17:19:37 +00:00
mime all: standardize RFC mention format 2016-04-12 21:07:52 +00:00
net net/http: add test that panic in a handler signals an error to the client 2016-04-12 23:33:00 +00:00
os os/user: wrap getgrnam_r to fix type issues 2016-04-06 15:49:15 +00:00
path all: use bytes.Equal, bytes.Contains and strings.Contains, again 2016-04-11 15:16:54 +00:00
reflect reflect: test that Call results are not addressable 2016-04-12 23:14:16 +00:00
regexp all: delete dead non-test code 2016-03-25 06:28:13 +00:00
runtime cmd/compile: fix arg to getcallerpc 2016-04-13 00:24:38 +00:00
sort all: delete dead non-test code 2016-03-25 06:28:13 +00:00
strconv
strings strings: improve explode and correct comment 2016-04-13 04:54:03 +00:00
sync sync/atomic: add s390x implementations of atomic functions 2016-04-07 15:30:14 +00:00
syscall syscall: add assembly for Linux on s390x 2016-04-08 18:40:11 +00:00
testing testing: fix flakey test on plan9 2016-04-06 18:35:33 +00:00
text text/template: emit field error over nil pointer error where appropriate 2016-04-10 23:29:29 +00:00
time all: delete dead non-test code 2016-03-25 06:28:13 +00:00
unicode
unsafe
vendor/golang.org/x/net/http2/hpack all: fix spelling mistakes 2016-04-03 17:03:15 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash cmd/dist: redo flag-passing for bootstrap 2016-03-18 19:00:03 +00:00
make.bat
Make.dist
make.rc
naclmake.bash src: split nacltest.bash into naclmake.bash and keep nacltest.bash 2016-04-12 02:03:34 +00:00
nacltest.bash src: split nacltest.bash into naclmake.bash and keep nacltest.bash 2016-04-12 02:03:34 +00:00
race.bash
race.bat
run.bash
run.bat
run.rc