go/src/pkg/encoding
Brad Fitzpatrick 29264c6f4f json: use strconv.Append variants to avoid allocations in encoding
Before/after, best of 3:
json.BenchmarkCodeEncoder  10  183495300 ns/op  10.58 MB/s
->
json.BenchmarkCodeEncoder  10  133025100 ns/op  14.59 MB/s

But don't get too excited about this.  These benchmarks, while
stable at any point of time, fluctuate wildly with any line of
code added or removed anywhere in the path due to stack splitting
issues.

It's currently much faster, though, and this is the API that
doesn't allocate so should always be faster in theory.

R=golang-dev, dsymonds, rsc, r, gri
CC=golang-dev
https://golang.org/cl/5411052
2011-12-15 11:21:21 -08:00
..
ascii85 use new strconv API 2011-12-05 15:48:46 -05:00
asn1 use new strconv API 2011-12-05 15:48:46 -05:00
base32 use new strconv API 2011-12-05 15:48:46 -05:00
base64 use new strconv API 2011-12-05 15:48:46 -05:00
binary all: sort imports 2011-11-02 15:54:16 -04:00
csv renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
git85 use new strconv API 2011-12-05 15:48:46 -05:00
gob encoding/gob: better error messages when types mismatch 2011-12-13 20:40:55 -08:00
hex src/pkg/[a-m]*: gofix -r error -force=error 2011-11-01 22:04:37 -04:00
json json: use strconv.Append variants to avoid allocations in encoding 2011-12-15 11:21:21 -08:00
pem src/pkg/[a-m]*: gofix -r error -force=error 2011-11-01 22:04:37 -04:00
xml use new strconv API 2011-12-05 15:48:46 -05:00