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

Issue 4515167: code review 4515167: gc: elide call to runtime.closure for function literals... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by lvd
Modified:
13 years, 10 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

gc: elide call to runtime.closure for function literals called in-place. before: runtime_test.BenchmarkCallClosure 5000000 499 ns/op runtime_test.BenchmarkCallClosure1 5000000 681 ns/op after: runtime_test.BenchmarkCallClosure 500000000 5 ns/op runtime_test.BenchmarkCallClosure1 10000000 160 ns/op

Patch Set 1 #

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

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

Total comments: 4

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

Patch Set 5 : diff -r b0c691bce96b https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r b0c691bce96b https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r b0c691bce96b https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r b99566fe890a https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -1 line) Patch
M src/cmd/gc/closure.c View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M src/cmd/gc/go.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/walk.c View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
A src/pkg/runtime/closure_test.go View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 6
lvd
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-05-31 16:28:03 UTC) #1
rsc
LGTM http://codereview.appspot.com/4515167/diff/3/src/cmd/gc/closure.c File src/cmd/gc/closure.c (right): http://codereview.appspot.com/4515167/diff/3/src/cmd/gc/closure.c#newcode231 src/cmd/gc/closure.c:231: // An extra zero, to fill the dummy ...
13 years, 10 months ago (2011-05-31 17:24:49 UTC) #2
rsc
in CL desc s/Elide/elide/ before you check it in, would be nice to add a ...
13 years, 10 months ago (2011-05-31 17:26:30 UTC) #3
lvd
all done. http://codereview.appspot.com/4515167/diff/3/src/cmd/gc/closure.c File src/cmd/gc/closure.c (right): http://codereview.appspot.com/4515167/diff/3/src/cmd/gc/closure.c#newcode231 src/cmd/gc/closure.c:231: // An extra zero, to fill the ...
13 years, 10 months ago (2011-05-31 17:30:07 UTC) #4
lvd
benchmark results before: runtime_test.BenchmarkCallClosure 5000000 521 ns/op after: runtime_test.BenchmarkCallClosure 500000000 7 ns/op
13 years, 10 months ago (2011-05-31 17:41:41 UTC) #5
lvd
13 years, 10 months ago (2011-05-31 18:52:23 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=47f1627ee6a5 ***

gc: elide call to runtime.closure for function literals called in-place.

before:
runtime_test.BenchmarkCallClosure        5000000               499 ns/op
runtime_test.BenchmarkCallClosure1       5000000               681 ns/op

after:
runtime_test.BenchmarkCallClosure       500000000                5 ns/op
runtime_test.BenchmarkCallClosure1       10000000              160 ns/op

R=rsc
CC=golang-dev
http://codereview.appspot.com/4515167
Sign in to reply to this message.

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