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

Issue 5371098: code review 5371098: reflect: avoid allocation during Type.Field (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by rsc
Modified:
12 years, 10 months ago
Reviewers:
r, bradfitz, iant, r2, remyoudompheng
CC:
golang-dev
Visibility:
Public.

Description

reflect: avoid allocation during Type.Field benchmark old ns/op new ns/op delta BenchmarkCodeEncoder 54459459 53357932 -2.02% BenchmarkCodeMarshal 56237601 55004241 -2.19% BenchmarkCodeDecoder 127630262 126423185 -0.95% BenchmarkCodeUnmarshal 128767843 125555821 -2.49% BenchmarkCodeUnmarshalReuse 123195734 122623580 -0.46% BenchmarkUnmarshalString 911 901 -1.10% BenchmarkUnmarshalFloat64 822 830 +0.97% BenchmarkUnmarshalInt64 748 748 +0.00% BenchmarkSkipValue 1938584 1965871 +1.41% benchmark old MB/s new MB/s speedup BenchmarkCodeEncoder 35.63 36.37 1.02x BenchmarkCodeMarshal 34.50 35.28 1.02x BenchmarkCodeDecoder 15.20 15.35 1.01x BenchmarkCodeUnmarshal 15.07 15.46 1.03x BenchmarkSkipValue 113.75 112.17 0.99x Fixes issue 2320.

Patch Set 1 #

Patch Set 2 : diff -r 2186073bfe4e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 2186073bfe4e https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2186073bfe4e https://go.googlecode.com/hg/ #

Patch Set 5 : code review 5371098: reflect: avoid allocation during Type.Field #

Patch Set 6 : diff -r 978e354cd4e0 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -6 lines) Patch
M src/pkg/reflect/all_test.go View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A src/pkg/reflect/seq.c View 1 2 3 4 5 1 chunk +125 lines, -0 lines 0 comments Download
M src/pkg/reflect/type.go View 1 2 3 4 5 3 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 14
rsc
Hello iant, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 2 months ago (2011-11-15 17:02:12 UTC) #1
r
this is above my gross-out threshold. since the measured gain is so modest, i suggest ...
14 years, 2 months ago (2011-11-15 17:07:19 UTC) #2
rsc
On Tue, Nov 15, 2011 at 12:07, <r@golang.org> wrote: > this is above my gross-out ...
14 years, 2 months ago (2011-11-15 17:13:32 UTC) #3
r2
compromise: why not create seq in go code? -rob
14 years, 2 months ago (2011-11-15 17:17:31 UTC) #4
rsc
On Tue, Nov 15, 2011 at 12:17, Rob 'Commander' Pike <r@google.com> wrote: > compromise: why ...
14 years, 2 months ago (2011-11-15 17:20:01 UTC) #5
r2
On Nov 15, 2011, at 9:19 AM, Russ Cox wrote: > On Tue, Nov 15, ...
14 years, 2 months ago (2011-11-15 17:22:02 UTC) #6
rsc
PTAL I would like a decision about whether we care about this anymore. Since last ...
12 years, 10 months ago (2013-03-11 20:45:01 UTC) #7
bradfitz
2 cents: I'd still like to see this on principle, to get rid of allocations. ...
12 years, 10 months ago (2013-03-11 20:47:27 UTC) #8
r
I am in favor of an allocation-free solution if available, but this implementation has bothered ...
12 years, 10 months ago (2013-03-11 20:47:29 UTC) #9
remyoudompheng
On 2013/03/11 20:45:01, rsc wrote: > However, the garbage collector has also gotten faster. Whereas ...
12 years, 10 months ago (2013-03-11 20:48:43 UTC) #10
rsc
On Mon, Mar 11, 2013 at 4:48 PM, <remyoudompheng@gmail.com> wrote: > On 2013/03/11 20:45:01, rsc ...
12 years, 10 months ago (2013-03-11 20:49:47 UTC) #11
bradfitz
Alternate proposal: https://codereview.appspot.com/7730043 (variation on an earlier attempt) No read-only memory in this case, but ...
12 years, 10 months ago (2013-03-11 22:03:14 UTC) #12
rsc
Let's drop this please.
12 years, 10 months ago (2013-03-11 22:03:31 UTC) #13
rsc
12 years, 10 months ago (2013-03-11 22:03:38 UTC) #14
*** Abandoned ***
Sign in to reply to this message.

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