mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00: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)
|
return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options)
|
||||||
|
|
||||||
def get_taskhash(self, tid, deps, dataCache):
|
def get_taskhash(self, tid, deps, dataCache):
|
||||||
h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
|
|
||||||
if tid in self.lockedhashes:
|
if tid in self.lockedhashes:
|
||||||
if self.lockedhashes[tid]:
|
if self.lockedhashes[tid]:
|
||||||
return self.lockedhashes[tid]
|
return self.lockedhashes[tid]
|
||||||
else:
|
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)
|
(mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user