minor optimisation

As soon as a change happens, we know we will need to rescan all
dependencies from the start, so bail out of the current scan partway to
avoid doing redundant work.

Only problem with this is that ikiwiki sometimes ends up printing out
dependencies that, while correct, are not obvious. Before:

building B, which depends on A
building C, which depends on A
building D, which depends on A

After:

building B, which depends on A
building C, which depends on B
building D, which depends on C
master
Joey Hess 2009-10-02 15:41:09 -04:00
parent 71eabd44d5
commit 52134dc0ef
1 changed files with 1 additions and 0 deletions

View File

@ -501,6 +501,7 @@ sub refresh () {
render($f);
$rendered{$f}=1;
$changes++;
last;
}
}
} while $changes;