mirror of
https://github.com/microsoft/terminal.git
synced 2026-11-16 09:20:53 +00:00
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) ✅