aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/database/sql/sql.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-05-14 15:50:46 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2013-05-14 15:50:46 -0700
commitf1583bb9563827fe132c97798657a6c60e6a0457 (patch)
tree5d493a52953837dd0b2a005ee06382dfd4edc4f3 /src/pkg/database/sql/sql.go
parentd73452b30f777152895002792cfd5751df642ea4 (diff)
downloadgo-f1583bb9563827fe132c97798657a6c60e6a0457.tar.xz
encoding/json: allocate less in NewEncoder
The *Encoder is almost always garbage. It doesn't need an encodeState inside of it (and its bytes.Buffer), since it's only needed locally inside of Encode. benchmark old ns/op new ns/op delta BenchmarkEncoderEncode 2562 2553 -0.35% benchmark old bytes new bytes delta BenchmarkEncoderEncode 283 102 -63.96% R=r CC=gobot, golang-dev https://golang.org/cl/9365044
Diffstat (limited to 'src/pkg/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions