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:
Kovid Goyal
2024-11-28 21:48:54 +05:30
parent 21871dcd58
commit 35946f9386
9 changed files with 127 additions and 195 deletions

View File

@@ -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()