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

Issue 4313062: code review 4313062: gc: inline append when len<cap (Closed)

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

Description

gc: inline append when len<cap fixes issue 1604

Patch Set 1 #

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

Total comments: 10

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

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

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

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

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

Total comments: 21

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

Total comments: 8

Patch Set 9 : diff -r 1268b4436e07 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 1268b4436e07 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 1268b4436e07 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 1268b4436e07 https://go.googlecode.com/hg/ #

Patch Set 13 : diff -r 1268b4436e07 https://go.googlecode.com/hg/ #

Patch Set 14 : diff -r f39664db2e15 https://go.googlecode.com/hg/ #

Patch Set 15 : diff -r f39664db2e15 https://go.googlecode.com/hg/ #

Patch Set 16 : diff -r f39664db2e15 https://go.googlecode.com/hg/ #

Patch Set 17 : diff -r f39664db2e15 https://go.googlecode.com/hg/ #

Patch Set 18 : diff -r f39664db2e15 https://go.googlecode.com/hg/ #

Patch Set 19 : diff -r f39664db2e15 https://go.googlecode.com/hg/ #

Total comments: 16

Patch Set 20 : diff -r 3556fc4657a3 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -113 lines) Patch
M src/cmd/6g/cgen.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +29 lines, -9 lines 0 comments Download
M src/cmd/6g/ggen.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 11 chunks +23 lines, -11 lines 0 comments Download
M src/cmd/6g/gsubr.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 8 chunks +33 lines, -8 lines 0 comments Download
M src/cmd/6g/reg.c View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/cmd/8g/cgen.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +29 lines, -11 lines 0 comments Download
M src/cmd/8g/ggen.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +21 lines, -8 lines 0 comments Download
M src/cmd/8g/gsubr.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 15 chunks +53 lines, -11 lines 0 comments Download
M src/cmd/gc/builtin.c.boot View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/gc/runtime.go View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/subr.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +8 lines, -4 lines 0 comments Download
M src/cmd/gc/walk.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 10 chunks +109 lines, -27 lines 0 comments Download
A src/pkg/runtime/append_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +51 lines, -0 lines 0 comments Download
M src/pkg/runtime/slice.c View 1 2 3 4 5 6 7 8 9 10 3 chunks +56 lines, -23 lines 0 comments Download

Messages

Total messages: 16
rsc
http://codereview.appspot.com/4313062/diff/2001/src/cmd/gc/subr.c File src/cmd/gc/subr.c (left): http://codereview.appspot.com/4313062/diff/2001/src/cmd/gc/subr.c#oldcode1135 src/cmd/gc/subr.c:1135: if(debug['r']) { Would you mind leaving these in, just ...
14 years, 1 month ago (2011-03-31 15:21:51 UTC) #1
lvd
all done http://codereview.appspot.com/4313062/diff/2001/src/cmd/gc/subr.c File src/cmd/gc/subr.c (left): http://codereview.appspot.com/4313062/diff/2001/src/cmd/gc/subr.c#oldcode1135 src/cmd/gc/subr.c:1135: if(debug['r']) { On 2011/03/31 15:21:51, rsc wrote: ...
14 years, 1 month ago (2011-03-31 18:06:31 UTC) #2
lvd
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-04-13 19:21:44 UTC) #3
bradfitz
Is this for http://code.google.com/p/go/issues/detail?id=1604 ? Might want to update the commit message if so. On ...
14 years ago (2011-04-13 19:27:26 UTC) #4
rsc
http://codereview.appspot.com/4313062/diff/10011/src/cmd/6g/gsubr.c File src/cmd/6g/gsubr.c (right): http://codereview.appspot.com/4313062/diff/10011/src/cmd/6g/gsubr.c#newcode914 src/cmd/6g/gsubr.c:914: if(0&& as == ALEAQ && f->op == OREGISTER) { ...
14 years ago (2011-04-13 20:03:17 UTC) #5
lvd
preliminary results of the benchmark in issue 1604: in the report: bm.BenchmarkAppend 1000000 2763 ns/op ...
14 years ago (2011-04-13 20:19:18 UTC) #6
lvd
all done, the tree compiles and timngs of the benchmark still same. http://codereview.appspot.com/4313062/diff/10011/src/cmd/6g/gsubr.c File src/cmd/6g/gsubr.c ...
14 years ago (2011-04-14 09:34:07 UTC) #7
rsc
Code looks good. The next step is to make the same changes to 5g and ...
14 years ago (2011-04-14 15:12:08 UTC) #8
lvd
i started on the 8g stuff but took it out as it's unlikely that i ...
14 years ago (2011-04-19 00:23:11 UTC) #9
lvd
tested on linux, all tests pass. cleaned up some commentedout dump's in walk.c should be ...
13 years, 11 months ago (2011-05-11 13:16:29 UTC) #10
lvd
Hello rsc, bradfitz (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-05-11 13:18:57 UTC) #11
rsc
LGTM http://codereview.appspot.com/4313062/diff/40014/src/cmd/6g/ggen.c File src/cmd/6g/ggen.c (right): http://codereview.appspot.com/4313062/diff/40014/src/cmd/6g/ggen.c#newcode199 src/cmd/6g/ggen.c:199: trailing tab http://codereview.appspot.com/4313062/diff/40014/src/cmd/6g/gsubr.c File src/cmd/6g/gsubr.c (right): http://codereview.appspot.com/4313062/diff/40014/src/cmd/6g/gsubr.c#newcode51 src/cmd/6g/gsubr.c:51: ...
13 years, 11 months ago (2011-05-11 14:16:58 UTC) #12
rsc
change CL decription issue 1604 -> Fixes issue 1604. (that's a command for the issue ...
13 years, 11 months ago (2011-05-11 14:17:37 UTC) #13
lvd
all done. submitting http://codereview.appspot.com/4313062/diff/40014/src/cmd/6g/ggen.c File src/cmd/6g/ggen.c (right): http://codereview.appspot.com/4313062/diff/40014/src/cmd/6g/ggen.c#newcode199 src/cmd/6g/ggen.c:199: On 2011/05/11 14:16:58, rsc wrote: > ...
13 years, 11 months ago (2011-05-11 14:24:33 UTC) #14
lvd
*** Submitted as http://code.google.com/p/go/source/detail?r=6086d38df203 *** gc: inline append when len<cap issue 1604 R=rsc, bradfitz CC=golang-dev ...
13 years, 11 months ago (2011-05-11 14:35:19 UTC) #15
peterGo
13 years, 11 months ago (2011-05-11 14:58:51 UTC) #16
On 2011/05/11 14:24:33, lvd wrote:
> all done. submitting

You didn't do this:

On 2011/05/11 14:17:37, rsc wrote:
> change CL decription
> 
> issue 1604 ->
> 
> Fixes issue 1604.
> 
> (that's a command for the issue tracker)
Sign in to reply to this message.

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