mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
159abe5e28
Previously, we'd use a 1MB buffer both to read the output from the associated pty (blocking), and the same size buffer again to do the non-blocking read on top of that. For pathological cases (eg: cat 100MB+ files), we could build a resulting `Vec<Action>` with over 1mm entries and it could take as much as 100ms to apply those actions to the terminal model. This meant that the output could stutter/lag and appear to be processed more slowly. This commit introduces a configuration value for the buffer size for the second stage, and makes it 10KB in size. This helps to constrain the size of the Action vec and keeps the incremental processing costs down, while still managing the same throughput. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |