]> Cypherpunks repositories - gostls13.git/commit
gob: eliminate two more allocations in decode.
authorRob Pike <r@golang.org>
Thu, 17 Mar 2011 17:47:42 +0000 (10:47 -0700)
committerRob Pike <r@golang.org>
Thu, 17 Mar 2011 17:47:42 +0000 (10:47 -0700)
commit9ad091e17871549c7620bd27c2ed4b730ed0bbd6
treef6df6cffaac38eea28532f0cfe603210ea1b17b0
parent2ca46a789b287c2c265dab8b4a05911b5304921d
gob: eliminate two more allocations in decode.
- just an oversight; we were reallocating a buffer.
- use unsafe to avoid allocating storage for a string twice.

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