]> Cypherpunks repositories - gostls13.git/commit
gob: keep free lists of encoder and decoder states.
authorRob Pike <r@golang.org>
Wed, 16 Mar 2011 04:30:07 +0000 (21:30 -0700)
committerRob Pike <r@golang.org>
Wed, 16 Mar 2011 04:30:07 +0000 (21:30 -0700)
commiteb864e92db76b3c4e638bf02dc39df5d01f9b3b9
tree3178694371603aa933058fbc6b5e18b9d19cf96d
parentbcd747204d840e8368f42a0f7f7ef5fa10aed2bc
gob: keep free lists of encoder and decoder states.
Avoids 3 mallocs in a round trip encoding/decoding a struct.

R=rsc, rsc1
CC=golang-dev
https://golang.org/cl/4278052
src/pkg/gob/codec_test.go
src/pkg/gob/decode.go
src/pkg/gob/decoder.go
src/pkg/gob/encode.go
src/pkg/gob/encoder.go