mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
bitbake: runqueue: Use a set for the setscene tasks list
This should give performance improvements to functions using this list of tasks (sets are used for most of the other code for this reason, not sure why this wasn't a set in the first place). (Bitbake rev: 1a026d4aca47ed1b0b74a8a818635e7520e8f9c8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f5daef68703481a3c243dfecc7de404e6ebfdbb6) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1124,14 +1124,14 @@ class RunQueueData:
|
||||
self.init_progress_reporter.next_stage()
|
||||
|
||||
# Iterate over the task list looking for tasks with a 'setscene' function
|
||||
self.runq_setscene_tids = []
|
||||
self.runq_setscene_tids = set()
|
||||
if not self.cooker.configuration.nosetscene:
|
||||
for tid in self.runtaskentries:
|
||||
(mc, fn, taskname, _) = split_tid_mcfn(tid)
|
||||
setscenetid = tid + "_setscene"
|
||||
if setscenetid not in taskData[mc].taskentries:
|
||||
continue
|
||||
self.runq_setscene_tids.append(tid)
|
||||
self.runq_setscene_tids.add(tid)
|
||||
|
||||
self.init_progress_reporter.next_stage()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user