]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: avoid allocating string for map key
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 27 Jun 2016 15:07:08 +0000 (11:07 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Tue, 28 Jun 2016 01:50:48 +0000 (01:50 +0000)
commit73516c5f481250db4ccbfdddb8f68ef261897fcb
tree8d0998e1b503b5ea115f7c1718a6e737c7a1143e
parent8d966bad6e4e9e28295bccbd739bf5280f729a7b
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>
src/encoding/gob/decode.go