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

Issue 6564052: code review 6564052: cmd/gc: Don't calculate second value in range if it is ... (Closed)

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

Description

cmd/gc: Don't calculate second value in range if it is blank. Low hanging fruit optimization. Will remove an expensive copy if the range variable is an array.

Patch Set 1 #

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

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

Patch Set 4 : diff -r aa52f2efc386 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/cmd/gc/range.c View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3
DMorsing
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
13 years, 2 months ago (2012-09-26 11:53:07 UTC) #1
rsc
LGTM
13 years, 2 months ago (2012-09-26 18:45:32 UTC) #2
DMorsing
13 years, 2 months ago (2012-09-26 19:10:34 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=599552ae08cd ***

cmd/gc: Don't calculate second value in range if it is blank.

Low hanging fruit optimization. Will remove an expensive copy if the range
variable is an array.

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

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