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:
parent
b5c02e410e
commit
6e6e453908
2 changed files with 16 additions and 8 deletions
5
jwack.py
5
jwack.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue