4 ms·
Why not just use a circular buffer for the scroll back? Why use blocks at all if you’re just going to recycle them anyway? That said, great write-up.
by drob518 10mo ago
Why not just use a circular buffer for the scroll back? Why use blocks at all if you’re just going to recycle them anyway? That said, great write-up.
- mitchellh 10mo agoIt started that way, and that's a common way to do this. One of the reasons is to avoid large pre-allocations OR large copies. A few other notes over on lobsters: https://lobste.rs/s/vlzg2m/finding_fixing_ghostty_s_largest_memory#c_c9i1yj https://lobste.rs/s/vlzg2m/finding_fixing_ghostty_s_largest_...
- drob518 10mo agoCool, thanks for the link.