Terminal notes: client throughput round 3 (hot spots, changes, benches)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 03:26:54 +00:00
parent a3149eef03
commit 9d46ac1c03
2 changed files with 126 additions and 4 deletions
+11
View File
@@ -55,3 +55,14 @@ Local patches (keep this list current):
reused until the line changes (`ui/row_pictures.dart`,
`BufferLine.version`); glyphs wider than their cells scaled to fit;
`TerminalStyle` and `TerminalTheme` compare by value
- write path: the parser reads written strings directly (`ByteConsumer`
counts UTF-16 units, no rune lists) and handles printable ASCII runs and
C0 controls straight from the string (`EscapeHandler.writeAscii`,
`Buffer.writeAscii`, `BufferLine.setAsciiCells`); a line leaving a full
scrollback or a one-line region scroll is cleared and reused unless it
has anchors (`BufferLine.clear`, which clears only the cells written
since); switch dispatch for C0 and direct calls for CSI/SGR;
`joinPreviousCell` rejects non-joining characters first; width table
covers plane 1; `IndexAwareCircularBuffer.insert` keeps its start index
wrapped; `Terminal.write(notify: false)` lets the host notify once per
frame