summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorBenjamin Szőke <egyszeregy@freemail.hu>2025-01-20 08:31:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-27 09:01:37 +0100
commit7c4e8e0def43305bf838f948c89b320f72e94b9e (patch)
treecdf69269891ba891d7e8cb611246e2c244618067 /bitbake/lib
parentc83ef63b137cc968ef120ef3f671690392759a25 (diff)
downloadpoky-7c4e8e0def43305bf838f948c89b320f72e94b9e.tar.gz
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 8fadc8338e..80f3d3282f 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -3034,14 +3034,13 @@ def build_scenequeue_data(sqdata, rqdata, sqrq):
3034 rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries)) 3034 rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries))
3035 3035
3036 # Sanity check all dependencies could be changed to setscene task references 3036 # Sanity check all dependencies could be changed to setscene task references
3037 for taskcounter, tid in enumerate(rqdata.runtaskentries): 3037 for tid in rqdata.runtaskentries:
3038 if tid in rqdata.runq_setscene_tids: 3038 if tid in rqdata.runq_setscene_tids:
3039 pass 3039 pass
3040 elif sq_revdeps_squash[tid]: 3040 elif sq_revdeps_squash[tid]:
3041 bb.msg.fatal("RunQueue", "Something went badly wrong during scenequeue generation, halting. Please report this problem.") 3041 bb.msg.fatal("RunQueue", "Something went badly wrong during scenequeue generation, halting. Please report this problem.")
3042 else: 3042 else:
3043 del sq_revdeps_squash[tid] 3043 del sq_revdeps_squash[tid]
3044 rqdata.init_progress_reporter.update(taskcounter)
3045 3044
3046 rqdata.init_progress_reporter.next_stage() 3045 rqdata.init_progress_reporter.next_stage()
3047 3046