aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-12 19:59:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 19:04:42 +0000
commitf5daef68703481a3c243dfecc7de404e6ebfdbb6 (patch)
tree3ee4a5019fd69cd5f35a97686df74b8a5ce145f3
parent08f35c04f6e1ce4c4ca5c2bef4cd8a192e12e682 (diff)
downloadbitbake-f5daef68703481a3c243dfecc7de404e6ebfdbb6.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>
-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()