1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-29 00:21:57 +03:00

raise ratelimit_output_bytes_per_second

10k was a bit tight for a full-screen vim window, so bump
it up a bit more.
This commit is contained in:
Wez Furlong 2019-11-21 19:03:46 -08:00
parent 3d7dbe9e76
commit e9ec35713c
2 changed files with 3 additions and 3 deletions

View File

@ -129,8 +129,8 @@ term = "xterm-256color"
# This acts as a brake in the case of a command spewing a # This acts as a brake in the case of a command spewing a
# ton of output and allows for the UI to remain responsive # ton of output and allows for the UI to remain responsive
# so that you can hit CTRL-C to interrupt it if desired. # so that you can hit CTRL-C to interrupt it if desired.
# The default value is 10,000 bytes/s. # The default value is 200,000 bytes/s.
ratelimit_output_bytes_per_second = 10000 ratelimit_output_bytes_per_second = 200_000
# Constrains the rate at which the multiplexer server will # Constrains the rate at which the multiplexer server will
# unilaterally push data to the client. # unilaterally push data to the client.

View File

@ -49,7 +49,7 @@ fn read_from_tab_pty(config: Arc<Config>, tab_id: TabId, mut reader: Box<dyn std
const BUFSIZE: usize = 32 * 1024; const BUFSIZE: usize = 32 * 1024;
let mut buf = [0; BUFSIZE]; let mut buf = [0; BUFSIZE];
let mut lim = RateLimiter::new(config.ratelimit_output_bytes_per_second.unwrap_or(10_000)); let mut lim = RateLimiter::new(config.ratelimit_output_bytes_per_second.unwrap_or(200_000));
loop { loop {
match reader.read(&mut buf) { match reader.read(&mut buf) {