<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/pkg/encoding/binary/binary_test.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/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: 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: make type error more specific</title>
<updated>2013-02-15T18:12:28Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2013-02-15T18:12:28Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2b9787c2f3861736e82aa715343b67157911917f'/>
<id>urn:sha1:2b9787c2f3861736e82aa715343b67157911917f</id>
<content type='text'>
Right now it says 'invalid type S' for a struct type S.
Instead, say which type inside the struct is the problem.

Fixes #4825.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7301102
</content>
</entry>
<entry>
<title>encoding/binary: skip blank fields when (en/de)coding structs</title>
<updated>2012-11-01T19:39:20Z</updated>
<author>
<name>Robert Griesemer</name>
<email>gri@golang.org</email>
</author>
<published>2012-11-01T19:39:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=27c990e7946d69fecc0c823e54f7d7da631ed1a5'/>
<id>urn:sha1:27c990e7946d69fecc0c823e54f7d7da631ed1a5</id>
<content type='text'>
- minor unrelated cleanups
- performance impact in the noise

benchmark                       old ns/op    new ns/op    delta
BenchmarkReadSlice1000Int32s        83462        83346   -0.14%
BenchmarkReadStruct                  4141         4247   +2.56%
BenchmarkReadInts                    1588         1586   -0.13%
BenchmarkWriteInts                   1550         1489   -3.94%
BenchmarkPutUvarint32                  39           39   +1.02%
BenchmarkPutUvarint64                 142          144   +1.41%

benchmark                        old MB/s     new MB/s  speedup
BenchmarkReadSlice1000Int32s        47.93        47.99    1.00x
BenchmarkReadStruct                 16.90        16.48    0.98x
BenchmarkReadInts                   18.89        18.91    1.00x
BenchmarkWriteInts                  19.35        20.15    1.04x
BenchmarkPutUvarint32              101.90       100.82    0.99x
BenchmarkPutUvarint64               56.11        55.45    0.99x

Fixes #4185.

R=r, rsc
CC=golang-dev
https://golang.org/cl/6750053
</content>
</entry>
<entry>
<title>encoding/binary: hide TotalSize</title>
<updated>2012-02-08T03:09:20Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2012-02-08T03:09:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=52ebadd3569b31ce423d4868ac9aa54a373aa1ad'/>
<id>urn:sha1:52ebadd3569b31ce423d4868ac9aa54a373aa1ad</id>
<content type='text'>
The function has a bizarre signature: it was the only public function there
that exposed the reflect package. Also, its definition is peculiar and hard to
explain. It doesn't merit being exported.

This is an API change but really, it should never have been exported and
it's certain very few programs will depend on it: it's too weird.

Fixes #2846.

R=golang-dev, gri, bradfitz
CC=golang-dev
https://golang.org/cl/5639054
</content>
</entry>
<entry>
<title>panics: use the new facilities of testing.B instead</title>
<updated>2011-12-20T18:36:25Z</updated>
<author>
<name>Rob Pike</name>
<email>r@golang.org</email>
</author>
<published>2011-12-20T18:36:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6b772462e420d15f5e1669a5f03e4f1cb7d8f2af'/>
<id>urn:sha1:6b772462e420d15f5e1669a5f03e4f1cb7d8f2af</id>
<content type='text'>
Lots of panics go away.
Also fix a name error in html/template.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5498045
</content>
</entry>
<entry>
<title>encoding/binary: add more benchmarks</title>
<updated>2011-12-20T17:25:47Z</updated>
<author>
<name>Roger Peppe</name>
<email>rogpeppe@gmail.com</email>
</author>
<published>2011-12-20T17:25:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=16bf7d9e82fd043ed44b3cb0ebd106c397f326d2'/>
<id>urn:sha1:16bf7d9e82fd043ed44b3cb0ebd106c397f326d2</id>
<content type='text'>
Also add a byte count to the varint benchmarks - this
isn't accurate, of course, but it allows a rough comparison to
the other benchmarks.

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