<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/pkg/encoding/json/encode.go, branch main</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2014-09-08T04:08:51Z</updated>
<entry>
<title>build: move package sources from src/pkg to src</title>
<updated>2014-09-08T04:08:51Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2014-09-08T04:08:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c007ce824d9a4fccb148f9204e04c23ed2984b71'/>
<id>urn:sha1:c007ce824d9a4fccb148f9204e04c23ed2984b71</id>
<content type='text'>
Preparation was in CL 134570043.
This CL contains only the effect of 'hg mv src/pkg/* src'.
For more about the move, see golang.org/s/go14nopkg.
</content>
</entry>
<entry>
<title>encoding/json: make ,string work when encoding pointer fields</title>
<updated>2014-08-25T17:32:46Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2014-08-25T17:32:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=df52d2ebd12687617da16b78076fc541f2622e33'/>
<id>urn:sha1:df52d2ebd12687617da16b78076fc541f2622e33</id>
<content type='text'>
It was respected by unmarshal, but not marshal, so they didn't
round-trip.

Fixes #8582

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/132960043
</content>
</entry>
<entry>
<title>encoding/json: document coercion of invalid UTF-8 characters</title>
<updated>2014-08-07T22:57:41Z</updated>
<author>
<name>Andrew Gerrand</name>
<email>adg@golang.org</email>
</author>
<published>2014-08-07T22:57:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=77a8dcab03c1bf8efa5cafaa2d9dc0a9f7a3dcf6'/>
<id>urn:sha1:77a8dcab03c1bf8efa5cafaa2d9dc0a9f7a3dcf6</id>
<content type='text'>
Fixes #8342.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/122180043
</content>
</entry>
<entry>
<title>encoding/json: mention escaping of '&amp;'</title>
<updated>2014-02-05T06:24:51Z</updated>
<author>
<name>Shenghou Ma</name>
<email>minux.ma@gmail.com</email>
</author>
<published>2014-02-05T06:24:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8a2dd16c7489493dab025a2edf3c58c3acab3d3e'/>
<id>urn:sha1:8a2dd16c7489493dab025a2edf3c58c3acab3d3e</id>
<content type='text'>
Fixes #7034.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/57140043
</content>
</entry>
<entry>
<title>encoding/json: use sync.Pool</title>
<updated>2013-12-18T23:52:05Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2013-12-18T23:52:05Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=46b4ed2cf065a9877257c6641e40a0e3cd1468fd'/>
<id>urn:sha1:46b4ed2cf065a9877257c6641e40a0e3cd1468fd</id>
<content type='text'>
Benchmark is within the noise. I had to run this a dozen times
each before &amp; after (on wall power, without a browser running)
before I could get halfway consistent numbers, and even then
they jumped all over the place, with the new one sometimes
being better. But these are the best of a dozen each.

Slowdown is expected anyway, since I imagine channels are
optimized more.

benchmark                 old ns/op    new ns/op    delta
BenchmarkCodeEncoder       26556987     27291072   +2.76%
BenchmarkEncoderEncode         1069         1071   +0.19%

benchmark                  old MB/s     new MB/s  speedup
BenchmarkCodeEncoder          73.07        71.10    0.97x

benchmark                old allocs   new allocs    delta
BenchmarkEncoderEncode            2            2    0.00%

benchmark                 old bytes    new bytes    delta
BenchmarkEncoderEncode          221          221    0.00%

Update #4720

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/37720047
</content>
</entry>
<entry>
<title>encoding/json: speed up decoding</title>
<updated>2013-12-18T15:30:21Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2013-12-18T15:30:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=626da8d73741b0cdeaa1acc048fec9ec8286f2b5'/>
<id>urn:sha1:626da8d73741b0cdeaa1acc048fec9ec8286f2b5</id>
<content type='text'>
Don't make copies of keys while decoding, and don't use the
expensive strings.EqualFold when it's not necessary. Instead,
note in the existing field cache what algorithm to use to
check fold equality... most keys are just ASCII letters.

benchmark               old ns/op    new ns/op    delta
BenchmarkCodeDecoder    137074314    103974418  -24.15%

benchmark                old MB/s     new MB/s  speedup
BenchmarkCodeDecoder        14.16        18.66    1.32x

Update #6496

R=golang-dev, rsc, adg, r, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/13894045
</content>
</entry>
<entry>
<title>encoding/json: don't cache value addressability when building first encoder</title>
<updated>2013-09-24T02:57:19Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2013-09-24T02:57:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=0f3ea75020cf7dda64805fe9aeef26be60cf16cd'/>
<id>urn:sha1:0f3ea75020cf7dda64805fe9aeef26be60cf16cd</id>
<content type='text'>
newTypeEncoder (called once per type and then cached) was
looking at the first value seen of that type's addressability
and caching the encoder decision.  If the first value seen was
addressable and a future one wasn't, it would panic.

Instead, introduce a new wrapper encoder type that checks
CanAddr at runtime.

Fixes #6458

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/13839045
</content>
</entry>
<entry>
<title>undo CL 13180043 / 318540e7857f</title>
<updated>2013-08-29T04:45:59Z</updated>
<author>
<name>Andrew Gerrand</name>
<email>adg@golang.org</email>
</author>
<published>2013-08-29T04:45:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=27f4166e372084e1d78119183d14b76391c803cb'/>
<id>urn:sha1:27f4166e372084e1d78119183d14b76391c803cb</id>
<content type='text'>
Accidentally submitted.

««« original CL description
encoding/json: add "overflow" struct tag option

Fixes #6213.

R=golang-dev, dsymonds, bradfitz
CC=golang-dev
https://golang.org/cl/13180043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/13234045
</content>
</entry>
<entry>
<title>encoding/json: add "overflow" struct tag option</title>
<updated>2013-08-29T04:39:55Z</updated>
<author>
<name>Andrew Gerrand</name>
<email>adg@golang.org</email>
</author>
<published>2013-08-29T04:39:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=466001d05d366cbc97edfb65dc6f5cb883df0498'/>
<id>urn:sha1:466001d05d366cbc97edfb65dc6f5cb883df0498</id>
<content type='text'>
Fixes #6213.

R=golang-dev, dsymonds, bradfitz
CC=golang-dev
https://golang.org/cl/13180043
</content>
</entry>
<entry>
<title>encoding/json: support encoding.TextMarshaler, encoding.TextUnmarshaler</title>
<updated>2013-08-14T18:56:07Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2013-08-14T18:56:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7e886740d1c4b62bf7aea2a71048be432aeff945'/>
<id>urn:sha1:7e886740d1c4b62bf7aea2a71048be432aeff945</id>
<content type='text'>
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12703043
</content>
</entry>
</feed>
