Y
Hacker News
new
|
ask
|
show
|
jobs
by
drob518
163 days 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.
1 comments
mitchellh
163 days ago
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_...
link
drob518
163 days ago
Cool, thanks for the link.
link