]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: fewer decAlloc calls
authorRuss Cox <rsc@golang.org>
Tue, 1 Jul 2014 18:19:27 +0000 (14:19 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 1 Jul 2014 18:19:27 +0000 (14:19 -0400)
commite4bc3c462bedb253cb73b2dc290e200d1ffde9fe
treea1a096437d9fd13c3ad290f4b8c1dc0aaedae833
parentdddc8b193fdd548061bb9f77b9395e6417a97cb6
encoding/gob: fewer decAlloc calls

Move decAlloc calls a bit higher in the call tree.
Cleans code marginally, improves speed marginally.
The benchmarks are noisy but the median time from
20 consective 1-second runs improves by about 2%.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/105530043
src/pkg/encoding/gob/codec_test.go
src/pkg/encoding/gob/decode.go