summaryrefslogtreecommitdiffstats
path: root/bitbake
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-13 13:12:23 +0000
commit31e5bc2b586c51ad3b9fdb79af8b549d8d7ce743 (patch)
tree1dc1db89346952bd4c2dc3c002d6824b8d8c8461 /bitbake
parentfbe8b3e3e97ee20e66cafdf2763f58fd39bcc5e5 (diff)
downloadpoky-31e5bc2b586c51ad3b9fdb79af8b549d8d7ce743.tar.gz
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: f5daef68703481a3c243dfecc7de404e6ebfdbb6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 6e3a91b850..d7186e8516 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1124,14 +1124,14 @@ class RunQueueData:
1124 self.init_progress_reporter.next_stage() 1124 self.init_progress_reporter.next_stage()
1125 1125
1126 # Iterate over the task list looking for tasks with a 'setscene' function 1126 # Iterate over the task list looking for tasks with a 'setscene' function
1127 self.runq_setscene_tids = [] 1127 self.runq_setscene_tids = set()
1128 if not self.cooker.configuration.nosetscene: 1128 if not self.cooker.configuration.nosetscene:
1129 for tid in self.runtaskentries: 1129 for tid in self.runtaskentries:
1130 (mc, fn, taskname, _) = split_tid_mcfn(tid) 1130 (mc, fn, taskname, _) = split_tid_mcfn(tid)
1131 setscenetid = tid + "_setscene" 1131 setscenetid = tid + "_setscene"
1132 if setscenetid not in taskData[mc].taskentries: 1132 if setscenetid not in taskData[mc].taskentries:
1133 continue 1133 continue
1134 self.runq_setscene_tids.append(tid) 1134 self.runq_setscene_tids.add(tid)
1135 1135
1136 self.init_progress_reporter.next_stage() 1136 self.init_progress_reporter.next_stage()
1137 1137