<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/pkg/encoding/binary, 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/binary: document that Read requires exported struct fields</title>
<updated>2014-05-09T21:19:21Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2014-05-09T21:19:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c00804c55c9ecc65728387a1902e414cac03de10'/>
<id>urn:sha1:c00804c55c9ecc65728387a1902e414cac03de10</id>
<content type='text'>
Add a test for the current behaviour.

Fixes #7482.

LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/95160043
</content>
</entry>
<entry>
<title>all: use {bytes,strings}.NewReader instead of bytes.Buffers</title>
<updated>2014-01-27T19:05:01Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2014-01-27T19:05:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a18f4ab56942f996607c08be56060a892b65822d'/>
<id>urn:sha1:a18f4ab56942f996607c08be56060a892b65822d</id>
<content type='text'>
Use the smaller read-only bytes.NewReader/strings.NewReader instead
of a bytes.Buffer when possible.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/54660045
</content>
</entry>
<entry>
<title>encoding/binary: use bytes.Reader in read example</title>
<updated>2013-08-27T13:32:24Z</updated>
<author>
<name>Mathieu Lonjaret</name>
<email>mathieu.lonjaret@gmail.com</email>
</author>
<published>2013-08-27T13:32:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d5c806d581f4d110dfc2696c8b18b4ecde82e453'/>
<id>urn:sha1:d5c806d581f4d110dfc2696c8b18b4ecde82e453</id>
<content type='text'>
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/13274043
</content>
</entry>
<entry>
<title>encoding/binary: make Write work like Read</title>
<updated>2013-08-13T21:03:56Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2013-08-13T21:03:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c18af467fdec00d4369bc9b5a140ff1d043aab2e'/>
<id>urn:sha1:c18af467fdec00d4369bc9b5a140ff1d043aab2e</id>
<content type='text'>
Use the fast path calculation to shorten the code.
No effect on benchmarks.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12696046
</content>
</entry>
<entry>
<title>encoding/binary: better description for intReadSize</title>
<updated>2013-08-09T23:11:58Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2013-08-09T23:11:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=556b337ece484d34d3dee1419579ca89475fcefc'/>
<id>urn:sha1:556b337ece484d34d3dee1419579ca89475fcefc</id>
<content type='text'>
It used to be called intDestSize; the new name is better too.

R=bradfitz
CC=golang-dev
https://golang.org/cl/12713043
</content>
</entry>
<entry>
<title>encoding/binary: fast path for reading slices</title>
<updated>2013-08-09T22:40:32Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2013-08-09T22:40:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1f25f5ad48b61092bdd8f43af7c068db0e947363'/>
<id>urn:sha1:1f25f5ad48b61092bdd8f43af7c068db0e947363</id>
<content type='text'>
Again, it still allocates but the code is simple.

benchmark                       old ns/op    new ns/op    delta
BenchmarkReadSlice1000Int32s        35580        11465  -67.78%

benchmark                        old MB/s     new MB/s  speedup
BenchmarkReadSlice1000Int32s       112.42       348.86    3.10x

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12694048
</content>
</entry>
<entry>
<title>encoding/binary: fix 32-bit build</title>
<updated>2013-08-09T13:23:34Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2013-08-09T13:23:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ef86beb4453bc7675b21480bf9bfdb1c6d2dca23'/>
<id>urn:sha1:ef86beb4453bc7675b21480bf9bfdb1c6d2dca23</id>
<content type='text'>
Sigh.

R=golang-dev
CC=golang-dev
https://golang.org/cl/12491045
</content>
</entry>
<entry>
<title>encoding/binary: speed up writing slices of integers</title>
<updated>2013-08-09T13:15:08Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2013-08-09T13:15:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c0465d0326c01f4f03f77cf3821d8b0f632364c1'/>
<id>urn:sha1:c0465d0326c01f4f03f77cf3821d8b0f632364c1</id>
<content type='text'>
Simple approach. Still generates garbage, but not as much.

benchmark                        old ns/op    new ns/op    delta
BenchmarkWriteSlice1000Int32s        40260        18791  -53.33%

benchmark                         old MB/s     new MB/s  speedup
BenchmarkWriteSlice1000Int32s        99.35       212.87    2.14x

Fixes #2634.

R=golang-dev, crawshaw
CC=golang-dev
https://golang.org/cl/12680046
</content>
</entry>
<entry>
<title>encoding/binary: document its goals better</title>
<updated>2013-08-09T07:08:02Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2013-08-09T07:08:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e0405b73187fddbcd685490550681d4fb742105d'/>
<id>urn:sha1:e0405b73187fddbcd685490550681d4fb742105d</id>
<content type='text'>
It's a modest package with modest goals and limitations.
Make that clear.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12694043
</content>
</entry>
</feed>
