1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:04:46 -07:00
go/src
David Crawshaw 73516c5f48 encoding/gob: avoid allocating string for map key
On linux/386 compared to tip:

	name                     old time/op  new time/op  delta
	DecodeInterfaceSlice-40  1.23ms ± 1%  1.17ms ± 1%  -4.93%  (p=0.000 n=9+10)

Recovers about half the performance regression from Go 1.6 on 386.

For #16117.

Change-Id: Ie8676d92a4da3e27ff21b91a98b3e13d16730ba1
Reviewed-on: https://go-review.googlesource.com/24468
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-06-28 01:50:48 +00:00
..
archive
bufio
builtin
bytes bytes: use Run method for benchmarks 2016-06-03 07:03:03 +00:00
cmd cmd/compile: avoid function literal name collision with "glob" 2016-06-27 21:05:28 +00:00
compress compress/flate: don't ignore dict in Reader.Reset 2016-06-27 21:28:34 +00:00
container all: fixed a handful of typos 2016-05-24 21:18:03 +00:00
context context: update documentation on cancelation and go vet check. 2016-06-24 19:21:21 +00:00
crypto crypto/tls: don't copy Mutex or Once values 2016-06-27 21:13:54 +00:00
database/sql
debug debug/pe: handle files with no string table 2016-06-19 05:18:09 +00:00
encoding encoding/gob: avoid allocating string for map key 2016-06-28 01:50:48 +00:00
errors
expvar
flag flag: recognize "0s" as the zero value for a flag.Duration 2016-05-31 23:45:47 +00:00
fmt
go math/big: special-case a 0 mantissa during Rat parsing 2016-06-24 20:51:06 +00:00
hash
html html/template: update security model link 2016-06-23 04:30:07 +00:00
image
index/suffixarray
internal internal/trace: err if binary is not supplied for old trace 2016-06-16 16:22:03 +00:00
io io: use SeekStart, SeekCurrent, and SeekEnd in io.Seeker documentation 2016-05-29 06:52:45 +00:00
log
math math/rand: fix io.Reader implementation 2016-06-27 22:18:09 +00:00
mime
net net/http/httptest: show usage of httptest.NewRequest in example 2016-06-27 21:08:47 +00:00
os os: fix blockUntilWaitable on freebsd/{386,arm} 2016-06-14 22:39:56 +00:00
path path/filepath: prevent infinite recursion on Windows on UNC input 2016-05-31 00:11:32 +00:00
reflect cmd/compile, etc: use tflag to optimize Name()=="" 2016-06-24 20:05:34 +00:00
regexp regexp: use Run for benchmark 2016-06-01 10:28:01 +00:00
runtime runtime/pprof: update comments to point to new pprof 2016-06-27 18:06:11 +00:00
sort
strconv strconv: use Run for some benchmarks 2016-06-02 20:47:29 +00:00
strings strings: fix and reenable amd64 Index for 17-31 byte strings 2016-05-27 22:57:32 +00:00
sync sync: document that RWMutex read locks may not be held recursively 2016-05-31 00:22:56 +00:00
syscall syscall: skip TestUnshare if kernel does not support net namespace 2016-06-15 11:41:49 +00:00
testing testing: document that logs are dumped to standard output 2016-06-23 04:31:19 +00:00
text text/template: clarify the default formatting used for values 2016-06-21 02:15:44 +00:00
time time: update documentation for Duration.String regarding the zero value 2016-06-24 19:41:45 +00:00
unicode
unsafe
vendor/golang.org/x/net vendor: update vendored route 2016-06-02 00:59:46 +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
run.bat
run.rc