Add some conditionals around some high-bandwidth debug statements.
When you have lots of unmodified dependencies, building these printout strings (which aren't even printed unless you're using -d) ends up taking something like 5% of the runtime.
This commit is contained in:
parent
6e6e453908
commit
10afd9000f
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ from helpers import debug, debug2, err, unlink
|
||||||
|
|
||||||
|
|
||||||
def dirty_deps(f, depth, max_changed):
|
def dirty_deps(f, depth, max_changed):
|
||||||
debug('%s?%s\n' % (depth, f.name))
|
if vars.DEBUG >= 1: debug('%s?%s\n' % (depth, f.name))
|
||||||
|
|
||||||
if f.changed_runid == None:
|
if f.changed_runid == None:
|
||||||
debug('%s-- DIRTY (never built)\n' % depth)
|
debug('%s-- DIRTY (never built)\n' % depth)
|
||||||
|
|
@ -14,7 +14,7 @@ def dirty_deps(f, depth, max_changed):
|
||||||
debug('%s-- DIRTY (built)\n' % depth)
|
debug('%s-- DIRTY (built)\n' % depth)
|
||||||
return True # has been built more recently than parent
|
return True # has been built more recently than parent
|
||||||
if f.is_checked():
|
if f.is_checked():
|
||||||
debug('%s-- CLEAN (checked)\n' % depth)
|
if vars.DEBUG >= 1: debug('%s-- CLEAN (checked)\n' % depth)
|
||||||
return False # has already been checked during this session
|
return False # has already been checked during this session
|
||||||
|
|
||||||
if not f.stamp:
|
if not f.stamp:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue