mbox series

[v3,0/4] bitbake: knotty/progressbar: Optimize footer update and prints.

Message ID 20250125122752.649-1-egyszeregy@freemail.hu
Headers show
Series bitbake: knotty/progressbar: Optimize footer update and prints. | expand

Message

Livius Jan. 25, 2025, 12:27 p.m. UTC
s=20181004; d=freemail.hu;

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

	l=861; bh=FXx49zmiscgfRbzJwarszJcsI4rYL6MWxDNToLOqrT0=;

	b=tapD2yOndckYH0Eo2+VzP2tr72i/Ze8TK7DzaplCZ8+3u2Zyu1ucalXX04W9EmsI

	Wyb2Gp9xMDJil8WQqQQLrRv2yHMM+ZbnxIXhBD/CfUsqGK2vIqUDRTr4sNkWnAtb22E

	eiR48k0SMTKtxo66DUywwj5JN9Qu9ufFvSW9N4vptlZZwGgm97LiZfohsPpYxxYkvLe

	BYiHgJUxLHl4ID3972Yv6Tc3Mim4AfBnwhR2PGNp5XxpLLKUoOa0VJ2Gvh5ambrr+4r

	xF5wNg9F5A97j0N7qV3UMawU07hqLqSRxniWP3PNEsyZTLXgHr8yYmU5wn/b5Oy4N4v

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

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

- Add self._fd_console to use for self._handle_resize() in ProgressBar() =
class
- Optimize printing in footer update with use a StringIO buffer.
- Use 40 Hz refresh rate (FPS) for footer update.
- Cleaning and refactoring prints in code, print() functions were elimina=
ted from all loops for better performance.

Benjamin Sz=C5=91ke (4):
  bitbake: progressbar: Add self._fd_console to use for
    self._handle_resize()
  bitbake: knotty: Use a StringIO buffer for update footer.
  bitbake: knotty: Use 40 Hz refresh rate (FPS) for footer update.
  bitbake: knotty: print() was eliminated from all loops for better
    performance.

 lib/bb/ui/knotty.py            | 74 ++++++++++++++++++++++++----------
 lib/progressbar/progressbar.py | 11 ++++-
 2 files changed, 62 insertions(+), 23 deletions(-)

--=20
2.47.1.windows.2