zellij/zellij-server
Aidan Hobson Sayers ed8ca9383e
performance(terminal): improvements to reflow performance by removing O(n^2) behavior (#3045)
* refactor: Simplify transfer_rows_from_viewport_to_lines_above

next_lines is always consolidated to a single Row, which immediately
gets removed - we can remove some dead code as a result

* perf: Batch remove rows from the viewport for performance

Given a 1MB line catted into the terminal, a toggle-fullscreen +
toggle-fullscreen + close-pane + `run true` goes from ~9s to ~3s

* perf: Optimize Row::drain_until by splitting chars in one step

Given a 10MB line catted into the terminal, a toggle-fullscreen +
toggle-fullscreen + close-pane + `run true` goes from ~23s to ~20s
2024-01-18 10:32:11 +01:00
..
src performance(terminal): improvements to reflow performance by removing O(n^2) behavior (#3045) 2024-01-18 10:32:11 +01:00
Cargo.toml chore(version): bump development version 2023-11-29 13:13:23 +01:00