mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 20:02:24 +02:00
sstatesig: Further optimise
Optimise the call into the parent function to be only when needed. (From OE-Core rev: 198bacaa1068fd68075d9182318fe64e9809dd36) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -141,14 +141,13 @@ class SignatureGeneratorOEBasicHashMixIn(object):
|
||||
return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options)
|
||||
|
||||
def get_taskhash(self, tid, deps, dataCache):
|
||||
h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
|
||||
if tid in self.lockedhashes:
|
||||
if self.lockedhashes[tid]:
|
||||
return self.lockedhashes[tid]
|
||||
else:
|
||||
return h
|
||||
return super().get_taskhash(tid, deps, dataCache)
|
||||
|
||||
h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
|
||||
h = super().get_taskhash(tid, deps, dataCache)
|
||||
|
||||
(mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user