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

Issue 42280045: code review 42280045: cmd/gc: do not compute dead value maps if they will not... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rsc
Modified:
11 years, 7 months ago
Reviewers:
iant
CC:
golang-codereviews, bradfitz, iant
Visibility:
Public.

Description

cmd/gc: do not compute dead value maps if they will not be used Reduces 6g big.go memory usage from 251 MB to 242 MB. Reduces 6g slow.go memory usage from 529 MB to 453 MB. Mostly a memory savings; 6g slow.go is only about 5% faster. The test programs are at https://rsc.googlecode.com/hg/testdata/big.go (36k lines, 276kB) https://rsc.googlecode.com/hg/testdata/slow.go (7k lines, 352kB)

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -18 lines) Patch
M src/cmd/gc/plive.c View 1 6 chunks +29 lines, -18 lines 0 comments Download

Messages

Total messages: 7
rsc
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2013-12-20 20:55:05 UTC) #1
bradfitz
Another question about testing, just to be a broken record: For changes like this, could ...
11 years, 7 months ago (2013-12-20 21:49:15 UTC) #2
rsc
R=r (so bradfitz doesn't get stuck with it) On Fri, Dec 20, 2013 at 4:49 ...
11 years, 7 months ago (2013-12-20 22:10:37 UTC) #3
bradfitz
SGTM Thanks. On Fri, Dec 20, 2013 at 2:10 PM, Russ Cox <rsc@golang.org> wrote: > ...
11 years, 7 months ago (2013-12-20 22:12:11 UTC) #4
iant
LGTM Right now, of course, we never generate the dead value map. I don't fully ...
11 years, 7 months ago (2013-12-20 22:52:01 UTC) #5
rsc
On Fri, Dec 20, 2013 at 5:52 PM, <iant@golang.org> wrote: > LGTM > > Right ...
11 years, 7 months ago (2013-12-20 22:55:18 UTC) #6
rsc
11 years, 7 months ago (2013-12-21 00:14:46 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=f131c6fc5185 ***

cmd/gc: do not compute dead value maps if they will not be used

Reduces 6g big.go memory usage from 251 MB to 242 MB.
Reduces 6g slow.go memory usage from 529 MB to 453 MB.

Mostly a memory savings; 6g slow.go is only about 5% faster.

The test programs are at
https://rsc.googlecode.com/hg/testdata/big.go (36k lines, 276kB)
https://rsc.googlecode.com/hg/testdata/slow.go (7k lines, 352kB)

R=golang-codereviews, bradfitz, iant
CC=golang-codereviews
https://codereview.appspot.com/42280045
Sign in to reply to this message.

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