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

Issue 5375093: code review 5375093: runtime: avoid allocation for make([]T, 0) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by rsc
Modified:
12 years, 6 months ago
Reviewers:
CC:
gri, iant, iant2, golang-dev
Visibility:
Public.

Description

runtime: avoid allocation for make([]T, 0)

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M src/pkg/runtime/slice.c View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 5
rsc
Hello gri, iant (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
12 years, 6 months ago (2011-11-14 21:27:46 UTC) #1
gri
LGTM http://codereview.appspot.com/5375093/diff/1002/src/pkg/runtime/slice.c File src/pkg/runtime/slice.c (right): http://codereview.appspot.com/5375093/diff/1002/src/pkg/runtime/slice.c#newcode51 src/pkg/runtime/slice.c:51: ret->array = (byte*)&zerobase; couldn't this just be ret->array ...
12 years, 6 months ago (2011-11-14 21:37:16 UTC) #2
iant2
LGTM rsc@golang.org writes: > Reviewers: gri, iant, > > Message: > Hello gri, iant (cc: ...
12 years, 6 months ago (2011-11-14 21:38:37 UTC) #3
rsc
On Mon, Nov 14, 2011 at 16:37, <gri@golang.org> wrote: > couldn't this just be ret->array ...
12 years, 6 months ago (2011-11-14 21:44:52 UTC) #4
rsc
12 years, 6 months ago (2011-11-15 17:05:33 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=14a037cbc719 ***

runtime: avoid allocation for make([]T, 0)

R=gri, iant, iant
CC=golang-dev
http://codereview.appspot.com/5375093
Sign in to reply to this message.

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