mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
Improve performance of processing wide chars
Store multi cell data in the CPUCell rather than in TextCache. This sends the CPUCell size back to 12 but in benchmarks ASCII performance is untouched and Unicode performace goes back to what it was before multicell
This commit is contained in:
@@ -302,7 +302,7 @@ def test_multicell(self: TestMulticell) -> None:
|
||||
assert_line('ab_c\0\0', -2)
|
||||
assert_line('\0__\0\0\0', -1)
|
||||
self.ae(s.historybuf.line(1).as_ansi(), f'a\x1b]{TEXT_SIZE_CODE};s=2;b\x07c')
|
||||
self.ae(s.historybuf.line(0).as_ansi(), ' ')
|
||||
self.ae(s.historybuf.line(0).as_ansi(), '')
|
||||
|
||||
# Insert lines
|
||||
s.reset()
|
||||
|
||||
Reference in New Issue
Block a user