logoalt Hacker News

drob518yesterday at 10:52 PM1 replyview on HN

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.


Replies

mitchellhyesterday at 11:01 PM

It 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_...

show 1 reply