mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
bitbake: runqueue: Optimize loop in scenequeue data construction
In scenequeue data generation loop, progress bar update in each cycle cause a significant loss of speed. Remove progress bar update in for loop. It was become quite fast (faster 30 times, about) without progress bar update. (Bitbake rev: f775e53f1196e3e5d0ded277c061c5c268b3b28d) Signed-off-by: Benjamin Szőke <egyszeregy@freemail.hu> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c83ef63b13
commit
7c4e8e0def
|
@ -3034,14 +3034,13 @@ def build_scenequeue_data(sqdata, rqdata, sqrq):
|
||||||
rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries))
|
rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries))
|
||||||
|
|
||||||
# Sanity check all dependencies could be changed to setscene task references
|
# Sanity check all dependencies could be changed to setscene task references
|
||||||
for taskcounter, tid in enumerate(rqdata.runtaskentries):
|
for tid in rqdata.runtaskentries:
|
||||||
if tid in rqdata.runq_setscene_tids:
|
if tid in rqdata.runq_setscene_tids:
|
||||||
pass
|
pass
|
||||||
elif sq_revdeps_squash[tid]:
|
elif sq_revdeps_squash[tid]:
|
||||||
bb.msg.fatal("RunQueue", "Something went badly wrong during scenequeue generation, halting. Please report this problem.")
|
bb.msg.fatal("RunQueue", "Something went badly wrong during scenequeue generation, halting. Please report this problem.")
|
||||||
else:
|
else:
|
||||||
del sq_revdeps_squash[tid]
|
del sq_revdeps_squash[tid]
|
||||||
rqdata.init_progress_reporter.update(taskcounter)
|
|
||||||
|
|
||||||
rqdata.init_progress_reporter.next_stage()
|
rqdata.init_progress_reporter.next_stage()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user