Файли
openidea/crates
Yohann CATHERINEтаyohannlog b21be36bf8 perf(terminal): stop copying and shifting the scrollback on every output batch (#7840)
The reattach scrollback copied every output batch in full to find a clear marker split across the previous batch, and once 256 KiB were kept it shifted the whole buffer on every batch, under the lock output delivery also takes. Only the marker's length on each side of the boundary is checked now, and the oldest output is dropped 128 KiB at a time (a reattached terminal replays up to 384 KiB).

An alternate-screen switch split across two batches is now counted, so a reattached terminal comes back on the right screen.

Co-authored-by: yohannlog <[email protected]>
2026-12-04 01:47:46 +08:00
..