aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-12 19:59:47 +0000
committerArmin Kuster <akuster808@gmail.com>2020-01-18 12:20:38 -0800
commit1a026d4aca47ed1b0b74a8a818635e7520e8f9c8 (patch)
treeea8b499746ed458bbff50d13adf983cac0e2c0cf
parent1115a14c93dc44124c3ab95053142da78032a004 (diff)
downloadbitbake-contrib-1a026d4aca47ed1b0b74a8a818635e7520e8f9c8.tar.gz
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). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f5daef68703481a3c243dfecc7de404e6ebfdbb6) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--lib/bb/runqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 6e3a91b85..d7186e851 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -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()