Some speedups for doing redo-ifchange on a large number of static files.

Fix some wastage revealed by the (almost useless, sigh) python profiler.
This commit is contained in:
Avery Pennarun 2010-12-09 05:53:30 -08:00
commit 6e6e453908
2 changed files with 16 additions and 8 deletions

View file

@ -105,6 +105,11 @@ def wait(want_token):
pd.donefunc(pd.name, pd.rv)
def has_token():
if _mytokens >= 1:
return True
def get_token(reason):
global _mytokens
assert(_mytokens <= 1)