diff mbox series

runqueue: Improve speed of scenequeue data generation.

Message ID 20250118191017.1331-1-egyszeregy@freemail.hu
State New
Headers show
Series runqueue: Improve speed of scenequeue data generation. | expand

Commit Message

Livius Jan. 18, 2025, 7:10 p.m. UTC
s=20181004; d=freemail.hu;

	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;

	l=1246; bh=OKue993SAaNqmRh0/MAzVMOvfqLbeCB0U6807gyFHqE=;

	b=Qi93Z17PMV52u3sGyFn1bnFY4nMIriuX3EvWsnHZDUiDqeX/atpw341yNl8mGkjF

	2GdtnrPRyeulDhcSLEB9Frqo7oCvTK42a00uZzQmq6oSa/K7OgxZaq4eBVF5UCwnfXf

	YmHyYIL8xSjG5IhOHiaBzrzKudPlQpA40L0kMRgURGr3EXx/xPZHQ0J8nexuN711YC1

	7+2gJdWwjWIXe2Fa14hNQAfJKgpRMqPIwCZXhVQvAdS1N6Ow3efnqIbm4cWEAbEseLC

	FR9WXtpsKyzq22WC2vZrRxKGFVG7uZTtmad3+e+GhXL4E/z3QmVHc7i+vbFGCJFvqJC

	OjXHWTPqfw==
Content-Transfer-Encoding: quoted-printable

From: Benjamin Sz=C5=91ke <egyszeregy@freemail.hu>

In scenequeue data generation loop, progress bar update in each cycle cau=
se
a significant loss of speed. Remove progress bar update in for loop. It w=
as
become quite fast (faster 30 times, about) without progress bar update.

Signed-off-by: Benjamin Sz=C5=91ke <egyszeregy@freemail.hu>
---
 lib/bb/runqueue.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

     rqdata.init_progress_reporter.next_stage()
=20
--=20
2.47.1.windows.1
diff mbox series

Patch

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index ffb2d2849..04676de43 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -3033,14 +3033,13 @@  def build_scenequeue_data(sqdata, rqdata, sqrq):
     rqdata.init_progress_reporter.next_stage(len(rqdata.runtaskentries))
=20
     # Sanity check all dependencies could be changed to setscene task re=
ferences
-    for taskcounter, tid in enumerate(rqdata.runtaskentries):
+    for tid in rqdata.runtaskentries:
         if tid in rqdata.runq_setscene_tids:
             pass
         elif sq_revdeps_squash[tid]:
             bb.msg.fatal("RunQueue", "Something went badly wrong during =
scenequeue generation, halting. Please report this problem.")
         else:
             del sq_revdeps_squash[tid]
-        rqdata.init_progress_reporter.update(taskcounter)
=20