1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:18:32 -06:00
go/src/encoding
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
..
ascii85 all: single space after period. 2016-03-02 00:13:47 +00:00
asn1 all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
base32 all: single space after period. 2016-03-02 00:13:47 +00:00
base64 encoding/base64: correct DecodedLen overestimate for unpadded encodings 2016-03-15 20:43:04 +00:00
binary all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
csv encoding/csv: update doc about comments whitespace 2016-06-10 01:00:09 +00:00
gob encoding/gob: avoid allocating string for map key 2016-06-28 01:50:48 +00:00
hex all: single space after period. 2016-03-02 00:13:47 +00:00
json encoding/json: copy-on-write cacheTypeFields 2016-06-27 15:08:12 +00:00
pem all: single space after period. 2016-03-02 00:13:47 +00:00
xml all: use bytes.Equal, bytes.Contains and strings.Contains 2016-04-01 02:05:01 +00:00
encoding.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00