]> Cypherpunks repositories - gostls13.git/commit
gob: remove another allocation.
authorRob Pike <r@golang.org>
Thu, 24 Mar 2011 04:49:19 +0000 (21:49 -0700)
committerRob Pike <r@golang.org>
Thu, 24 Mar 2011 04:49:19 +0000 (21:49 -0700)
commitd1b75bbc4609087a69bf6bdb908036c58c8947ea
tree8681e23ff01fcc7ac04d2d5ca45cd2c3ff60554e
parent1c05a90ae28df67ae74a2ad49293e11d9222cb1c
gob: remove another allocation.
The top level bytes.Buffer is always there and can be re-used.
Rpc goes from 83 to 79 mallocs per round trip.

R=rsc
CC=golang-dev
https://golang.org/cl/4271062
src/pkg/gob/encoder.go