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

Issue 5310048: code review 5310048: goprotobuf: remove unsafe buffer scratch allocator (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by r
Modified:
14 years ago
Reviewers:
CC:
dsymonds, rsc, ken2, r2, golang-dev
Visibility:
Public.

Description

goprotobuf: remove unsafe buffer scratch allocator This is part of the work towards making protobufs run on App Engine. By the way, it's faster now. Before: proto_test.BenchmarkUnmarshal 20000 87053 ns/op After: proto_test.BenchmarkUnmarshal 20000 84825 ns/op

Patch Set 1 #

Patch Set 2 : diff -r e8094a6da7be https://goprotobuf.googlecode.com/hg #

Total comments: 7

Patch Set 3 : diff -r e8094a6da7be https://goprotobuf.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -215 lines) Patch
M proto/decode.go View 1 2 12 chunks +80 lines, -119 lines 0 comments Download
M proto/encode.go View 2 chunks +3 lines, -6 lines 0 comments Download
M proto/extensions.go View 2 chunks +2 lines, -6 lines 0 comments Download
M proto/lib.go View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M proto/properties.go View 16 chunks +3 lines, -83 lines 0 comments Download

Messages

Total messages: 6
r
Hello dsymonds, rsc, ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://goprotobuf.googlecode.com/hg
14 years ago (2011-10-19 23:41:11 UTC) #1
dsymonds
LGTM I love how much this cleans up. http://codereview.appspot.com/5310048/diff/3001/proto/decode.go File proto/decode.go (right): http://codereview.appspot.com/5310048/diff/3001/proto/decode.go#newcode357 proto/decode.go:357: iv ...
14 years ago (2011-10-20 02:31:20 UTC) #2
rsc
LGTM except the []string If we drop the []string then there is no unbounded false ...
14 years ago (2011-10-20 15:11:41 UTC) #3
r2
On Oct 20, 2011, at 8:11 AM, rsc@golang.org wrote: > LGTM except the []string > ...
14 years ago (2011-10-20 15:24:29 UTC) #4
rsc
> > I think this could be a smaller number than 16 as the base ...
14 years ago (2011-10-20 18:06:49 UTC) #5
r
14 years ago (2011-10-20 19:58:30 UTC) #6
*** Submitted as
http://code.google.com/p/goprotobuf/source/detail?r=9fe71978189f ***

goprotobuf: remove unsafe buffer scratch allocator
This is part of the work towards making protobufs run on App Engine.
By the way, it's faster now.

Before:
proto_test.BenchmarkUnmarshal	   20000	     87053 ns/op
After:
proto_test.BenchmarkUnmarshal	   20000	     84825 ns/op

R=dsymonds, rsc, ken, r
CC=golang-dev
http://codereview.appspot.com/5310048
Sign in to reply to this message.

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