Improve processing performance
This is another effort to improve performance.
vtebench
Benchmarks withBEFORE |
AFTER |
cursor_motion (528 samples @ 1.22 MiB):
18.46ms avg (90% < 20ms) +-1.64ms
|
cursor_motion (573 samples @ 1.22 MiB):
16.95ms avg (90% < 19ms) +-1.85ms
|
termbench
Benchmark withBEFORE
CPU: AMD Ryzen 7 4700U with Radeon Graphics
VT support: no
ManyLine: 6.8625s (0.0091gb/s)
LongLine: 2.1697s (0.0288gb/s)
FGPerChar: 0.3569s (0.0508gb/s)
FGBGPerChar: 0.7919s (0.0445gb/s)
TermMarkV2 Small: 10.1810s (0.0175gb/s)
real 0m11.022s
user 0m0.951s
sys 0m2.883s
AFTER
CPU: AMD Ryzen 7 4700U with Radeon Graphics
VT support: no
ManyLine: 5.2654s (0.0119gb/s)
LongLine: 1.6589s (0.0377gb/s)
FGPerChar: 0.3188s (0.0569gb/s)
FGBGPerChar: 0.7324s (0.0481gb/s)
TermMarkV2 Small: 7.9755s (0.0224gb/s)
real 0m8.797s
user 0m0.939s
sys 0m3.143s
With the one file that I have been measuring performance throughout, these changes show a + ~700ms improvement.