forked from Textualize/textual
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Paul Ollis edited this page Apr 3, 2025
·
3 revisions
Some before and after, side-by-side comparisons of the TextArea widget's performance. Before is on the left.
Each simulates a (very) fast typist and an key auto-repeat rate of 60 times a second.
The first MP4 shows a file of about 1000 lines being edited. Both sessions take about the same elapsed time, but note the difference in the user CPU time and the number of bytes written to the terminal.
1k-file-editing.mp4
The second MP4 shows a file of about 10_000 lines being scrolled and edited. On my machine the new code takes considerably less elapsed time and the 'before' version is not able to keep up with the typing rate.