diff options
author | 2019-12-13 16:07:28 +0000 | |
---|---|---|
committer | 2019-12-15 09:40:33 +0000 | |
commit | 6a32af2808d748819f4af55c443578c8a63062b3 (patch) | |
tree | fbe9a618574930a9a3d913b7d6af4ee33de1d37a /lib/bb/runqueue.py | |
parent | 608b9f821539de813bfbd9e65950dbc56a274bc2 (diff) | |
download | bitbake-6a32af2808d748819f4af55c443578c8a63062b3.tar.gz |
siggen: Split get_tashhash for performance
There are two operations happening in get_taskhash, the building of the
underlying data and the calculation of the hash.
Split these into two funtions since the preparation part doesn't need
to rerun when unihash changes, only the calculation does.
This split allows sigificant performance improvements for hashequiv
in builds where many hashes are equivalent and many hashes are changing.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index b3648ddb5..515e9d431 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1185,6 +1185,7 @@ class RunQueueData: procdep = [] for dep in self.runtaskentries[tid].depends: procdep.append(dep) + bb.parse.siggen.prep_taskhash(tid, procdep, self.dataCaches[mc_from_tid(tid)]) self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(tid, procdep, self.dataCaches[mc_from_tid(tid)]) self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(tid) |