Don't re-check dependencies in a single run.

If a depends on b depends on c, then if when we consider building a, we have
to check b and c.  If we then are asked about a2 which depends on b, there
is no reason to re-check b and its dependencies; we already know it's done.

This takes the time to do 'redo t/curse/all' the *second* time down from
1.0s to 0.13s.  (make can still do it in 0.07s.)

'redo t/curse/all' the first time is down from 5.4s to to 4.6s.  With -j4,
from 3.0s to 2.5s.
This commit is contained in:
Avery Pennarun 2010-11-21 00:54:35 -08:00
commit 2f604b2c8f
3 changed files with 25 additions and 0 deletions

View file

@ -50,6 +50,8 @@ if is_root:
mkdirp('%s/.redo' % base)
for f in glob.glob('%s/.redo/lock*' % base):
os.unlink(f)
for f in glob.glob('%s/.redo/mark^*' % base):
os.unlink(f)
if not vars.DEPTH: