commit | eb50e7a2c87ed8c18f2944e0082e961acb70765b | [log] [download] |
---|---|---|
author | nicm <nicm> | Fri Sep 16 13:43:41 2016 +0000 |
committer | nicm <nicm> | Fri Sep 16 13:43:41 2016 +0000 |
tree | 980730cb291256386e94ecb929c04631f062d9c0 | |
parent | 2e5584c2b41df1c1b836c3229ea78f8ea3d81054 [diff] |
Swap watermarks from high (4096) to low (128) when we get full buffers into the read callback several times in succession; swap back when we see empty buffers several times. This hopefully limits how much programs that print a lot for a long period can monopolize tmux (like large, fast compiling), without penalizing programs that print a lot briefly (like most curses applications). Helps a lot for me, the actual numbers may need tweaking later.