mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
cache: defer marking fn as clean
Only mark fn as clean if it is clean. This saves us from removing (prematurely added) fn from our clean set and saves me a few percent of runtime (and misleading debugging output from remove()). (Bitbake rev: 884365228fcaac07421ac1440d4946693fb628c5) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
c9d4807662
commit
aae8532528
@@ -347,13 +347,9 @@ class Cache(object):
|
||||
|
||||
self.checked.add(fn)
|
||||
|
||||
# Pretend we're clean so getVar works
|
||||
self.clean.add(fn)
|
||||
|
||||
# File isn't in depends_cache
|
||||
if not fn in self.depends_cache:
|
||||
logger.debug(2, "Cache: %s is not cached", fn)
|
||||
self.remove(fn)
|
||||
return False
|
||||
|
||||
mtime = bb.parse.cached_mtime_noerror(fn)
|
||||
@@ -409,6 +405,7 @@ class Cache(object):
|
||||
self.clean.remove(fn)
|
||||
return False
|
||||
|
||||
self.clean.add(fn)
|
||||
return True
|
||||
|
||||
def remove(self, fn):
|
||||
|
||||
Reference in New Issue
Block a user