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

Issue 4413042: code review 4413042: build: tidy intermediate files during build (Closed)

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

Description

build: tidy intermediate files during build This CL changes the behavior of 'make install' and 'make test' in the src/cmd directory and the src/pkg directory to have each recursive make clean up after itself immediately. It does the same in test/run, removing $F.$A and $A.out (the common byproducts) between runs. On machines with slow disks and aggressive kernel caching, cleaning up immediately can mean that the intermediate objects never get written to disk. This change eliminates almost all the disk waiting during all.bash on my laptop (a Thinkpad X201s with an SSD running Linux). 147.50u 19.95s 277.34r before 148.53u 21.64s 179.59r after

Patch Set 1 #

Patch Set 2 : diff -r 65b2233724dd https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 65b2233724dd https://go.googlecode.com/hg/ #

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

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

Messages

Total messages: 4
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2011-04-13 18:43:13 UTC) #1
r
LGTM, with trepidation
13 years, 11 months ago (2011-04-13 19:31:49 UTC) #2
iant2
LGTM rsc@golang.org writes: > Reviewers: golang-dev_googlegroups.com, > > Message: > Hello golang-dev (cc: golang-dev@googlegroups.com), > ...
13 years, 11 months ago (2011-04-13 19:50:07 UTC) #3
rsc
13 years, 11 months ago (2011-04-13 20:24:59 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=3b7654f28a02 ***

build: tidy intermediate files during build

This CL changes the behavior of 'make install' and 'make test'
in the src/cmd directory and the src/pkg directory to have
each recursive make clean up after itself immediately.

It does the same in test/run, removing $F.$A and $A.out
(the common byproducts) between runs.

On machines with slow disks and aggressive kernel caching,
cleaning up immediately can mean that the intermediate
objects never get written to disk.

This change eliminates almost all the disk waiting during
all.bash on my laptop (a Thinkpad X201s with an SSD running Linux).

147.50u 19.95s 277.34r	before
148.53u 21.64s 179.59r	after

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

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