1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

bitbake: runqueue: Optimise task migration code slightly

Move the calls to difference_update out a code level which improves efficiency
significantly.

Also further combine the outer loop for efficiency too.

These two changes remove a bottleneck from the performance charts.

(Bitbake rev: 57df7f191755dd887827d51b125d246c1af3e1b6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e28ec69356f1797de3e4e3fca0fef710bc4564de)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2019-12-14 18:17:01 +00:00
parent db413b5050
commit 2425a927c7
+2 -1
View File
@@ -2268,8 +2268,9 @@ class RunQueueExecute:
# Work out all tasks which depend upon these # Work out all tasks which depend upon these
total = set() total = set()
next = set()
for p in toprocess: for p in toprocess:
next = set(self.rqdata.runtaskentries[p].revdeps) next |= self.rqdata.runtaskentries[p].revdeps
while next: while next:
current = next.copy() current = next.copy()
total = total | next total = total | next