Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3587)

Issue 149290045: code review 149290045: encoding/binary: fix error message (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 6 months ago by gri
Modified:
9 years, 6 months ago
Reviewers:
r, gobot
CC:
r, golang-codereviews
Visibility:
Public.

Description

encoding/binary: fix error message In the process, simplified internal sizeOf and dataSize functions. Minor positive impact on performance. Added test case. benchmark old ns/op new ns/op delta BenchmarkReadSlice1000Int32s 14006 14122 +0.83% BenchmarkReadStruct 2508 2447 -2.43% BenchmarkReadInts 921 928 +0.76% BenchmarkWriteInts 2086 2081 -0.24% BenchmarkWriteSlice1000Int32s 13440 13497 +0.42% BenchmarkPutUvarint32 28.5 26.3 -7.72% BenchmarkPutUvarint64 81.3 76.7 -5.66% benchmark old MB/s new MB/s speedup BenchmarkReadSlice1000Int32s 285.58 283.24 0.99x BenchmarkReadStruct 27.90 28.60 1.03x BenchmarkReadInts 32.57 32.31 0.99x BenchmarkWriteInts 14.38 14.41 1.00x BenchmarkWriteSlice1000Int32s 297.60 296.36 1.00x BenchmarkPutUvarint32 140.55 151.92 1.08x BenchmarkPutUvarint64 98.36 104.33 1.06x Fixes issue 6818.

Patch Set 1 #

Patch Set 2 : diff -r 3042795874453efa7be0a082f3f85118b9d06432 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 3042795874453efa7be0a082f3f85118b9d06432 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 5cf5d1f289a7c32de62e461f81d16fd4f4bf76ca https://code.google.com/p/go/ #

Total comments: 2

Patch Set 5 : diff -r d56326309b20f195edd23baac9271548cd999328 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -40 lines) Patch
M src/encoding/binary/binary.go View 1 2 3 4 3 chunks +32 lines, -38 lines 0 comments Download
M src/encoding/binary/binary_test.go View 1 2 3 4 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 5
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 6 months ago (2014-10-01 19:41:21 UTC) #1
r
LGTM https://codereview.appspot.com/149290045/diff/60001/src/encoding/binary/binary_test.go File src/encoding/binary/binary_test.go (right): https://codereview.appspot.com/149290045/diff/60001/src/encoding/binary/binary_test.go#newcode298 src/encoding/binary/binary_test.go:298: t.Errorf("%T: got no error; want %q", data, want) ...
9 years, 6 months ago (2014-10-02 19:30:24 UTC) #2
gri
https://codereview.appspot.com/149290045/diff/60001/src/encoding/binary/binary_test.go File src/encoding/binary/binary_test.go (right): https://codereview.appspot.com/149290045/diff/60001/src/encoding/binary/binary_test.go#newcode298 src/encoding/binary/binary_test.go:298: t.Errorf("%T: got no error; want %q", data, want) On ...
9 years, 6 months ago (2014-10-02 19:53:58 UTC) #3
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=c361cbe8f03c *** encoding/binary: fix error message In the process, simplified internal sizeOf ...
9 years, 6 months ago (2014-10-02 19:54:00 UTC) #4
gobot
9 years, 6 months ago (2014-10-03 03:07:12 UTC) #5
Message was sent while issue was closed.
This CL appears to have broken the netbsd-amd64-bsiegert builder.
See http://build.golang.org/log/7ed50b3820c9e241da7b82e92be7f88202434511
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b