Files
Leonard Hecker 5f7dc28301 Can we have infinite scrollback? (#18290)
Mom: We have infinite scrollback at home.
Infinite scrollback at home:

...very much finite. How do you define "infinite" scrollback anyway?
Does it entail downloading RAM? It's a mystery. So, this PR adds support
for 1B rows of scrollback, because that's >600GB of memory, which makes
it effectively unusable. But it's enough to have a lot of finity.

Thanks to the raised limit, this PR sets the default history size from
to 16Ki which is roughly 10MB of memory. The can be cut in half once we
remove the charOffsets cache on each ROW.

Related to #1410

## Validation Steps Performed
* Set scrollback to 1M lines
* Dump 100MB of text and watch the RSS grow
* Reflow the window (it lags a little) ✅
* Clear the buffer (it's fast) ✅
2026-11-09 22:32:21 +01:00
..
2020-11-13 09:45:08 -08:00
2021-10-25 06:16:30 -05:00
2022-01-21 18:24:06 +00:00
…
2021-06-14 10:06:01 -07:00