Comment by drob518 Comment by drob518 a day ago 2 replies Copy Link View on Hacker News 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.
Copy Link mitchellh a day ago Collapse Comment - 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_... Reply View | 1 reply Copy Link drob518 a day ago Parent Collapse Comment - Cool, thanks for the link. Reply View | 0 replies
Copy Link drob518 a day ago Parent Collapse Comment - Cool, thanks for the link. Reply View | 0 replies
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_...