]> Cypherpunks repositories - gostls13.git/commit
build: reduce the use of subshells in recursive make
authorDave Cheney <dave@cheney.net>
Fri, 18 Feb 2011 23:49:46 +0000 (10:49 +1100)
committerAndrew Gerrand <adg@golang.org>
Fri, 18 Feb 2011 23:49:46 +0000 (10:49 +1100)
commit8a8ecda54a14bc67e6f0df223b55c8037fc5951b
tree881ef37fe01e285fae8ca481ebe8d1ff1f09f2ea
parent79ba1ce076561fb8f75d2f55f9c4cb810feee996
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
https://golang.org/cl/4174055
src/Make.common
src/pkg/Makefile