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-28 11:51:03 +0000
commitc1d49a3741183180b9e27f9d4dca1dbbe7232b87 (patch)
treee59ab503a2c13db48b8fa5c1f85de26eb79ff141 /bitbake
parenta74b608224bd709f4723e76a8d92c3a58a927ed9 (diff)
downloadpoky-c1d49a3741183180b9e27f9d4dca1dbbe7232b87.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: 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>
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