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

Issue 97280043: code review 97280043: cmd/go: simplify code, reduce allocations. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by shurcooL
Modified:
10 years, 12 months ago
Reviewers:
bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

cmd/go: simplify code, reduce allocations. This is a trivial change to make use of an existing `nl` byte slice containing a single '\n' character. It's already declared and used in another place in this file, so it might as well be used in the other location instead of a new slice literal. There should be no change in behavior, aside from potentially less allocations. This is my first CL, so I wanted to use a simple, hopefully non-controversial, minor improvement to get more comfortable with golang contribution process.

Patch Set 1 #

Patch Set 2 : diff -r 87c97fd0aee6 https://code.google.com/p/go #

Patch Set 3 : diff -r 87c97fd0aee6 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/cmd/go/list.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
shurcooL
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 12 months ago (2014-05-11 00:37:23 UTC) #1
bradfitz
LGTM On Sat, May 10, 2014 at 5:37 PM, <shurcooL@gmail.com> wrote: > Reviewers: golang-codereviews, > ...
10 years, 12 months ago (2014-05-11 00:40:15 UTC) #2
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=299229ac4300 *** cmd/go: simplify code, reduce allocations. This is a trivial change ...
10 years, 12 months ago (2014-05-11 01:07:07 UTC) #3
bradfitz
10 years, 12 months ago (2014-05-11 01:08:41 UTC) #4
I approved and submitted this, but it really is freeze time. Please hold on
future contributions, however minor, until Go 1.3 is out.  I figured this
will get us a bit more builder testing at least.



On Sat, May 10, 2014 at 6:07 PM, <bradfitz@golang.org> wrote:

> *** Submitted as
> https://code.google.com/p/go/source/detail?r=299229ac4300 ***
>
>
> cmd/go: simplify code, reduce allocations.
>
> This is a trivial change to make use of an existing `nl` byte slice
> containing a single '\n' character. It's already declared and
> used in another place in this file, so it might as well be used
> in the other location instead of
> a new slice literal. There should be no change in behavior,
> aside from potentially less allocations.
>
> This is my first CL, so I wanted to use a simple, hopefully
> non-controversial,
> minor improvement to get more comfortable with golang contribution
> process.
>
> LGTM=bradfitz
> R=golang-codereviews, bradfitz
> CC=golang-codereviews
> https://codereview.appspot.com/97280043
>
> Committer: Brad Fitzpatrick <bradfitz@golang.org>
>
>
> https://codereview.appspot.com/97280043/
>
Sign in to reply to this message.

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