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

Issue 4174055: code review 4174055: build: reduce the use of subshells in recursive make (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by dfc
Modified:
13 years, 1 month ago
Reviewers:
CC:
adg, golang-dev, rsc
Visibility:
Public.

Description

build: reduce the use of subshells in recursive make Using make -C $* rather than (cd $* ; make) results in a small, but measurable improvement in build times where compilation is not the major component. eg. before - ~/go/src/pkg$ time make real 0m1.176s user 0m0.639s sys 0m0.399s after - ~/go/src/pkg$ time make real 0m0.916s user 0m0.571s sys 0m0.243s There are other places in the distribution src/make.common for example that could also benefit from this change.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 4892f94182a5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M src/Make.common View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/Makefile View 1 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6
dfc
Hello adg (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2011-02-17 04:31:48 UTC) #1
rsc
sigh > There are other places in the distribution src/make.common for example > that could ...
13 years, 1 month ago (2011-02-17 04:35:31 UTC) #2
dfc
Added src/Make.common. Please take another look. Cheers Dave
13 years, 1 month ago (2011-02-17 04:42:48 UTC) #3
adg
LGTM
13 years, 1 month ago (2011-02-17 16:59:35 UTC) #4
adg
*** Submitted as 440678ea208a *** build: reduce the use of subshells in recursive make Using ...
13 years, 1 month ago (2011-02-17 16:59:46 UTC) #5
adg
13 years, 1 month ago (2011-02-18 23:49:52 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=fa0771258ae1 ***

build: reduce the use of subshells in recursive make

Using make -C $* rather than (cd $* ; make) results in a small,
but measurable improvement in build times where compilation is
not the major component. eg.

before - ~/go/src/pkg$ time make
        real	0m1.176s
        user	0m0.639s
        sys	0m0.399s
after - ~/go/src/pkg$ time make
        real	0m0.916s
        user	0m0.571s
        sys	0m0.243s

There are other places in the distribution src/make.common for example
that could also benefit from this change.

R=adg
CC=golang-dev, rsc
http://codereview.appspot.com/4174055

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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