1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-30 14:49:26 +03:00

increase renderer buffer size

The default buffer size is tiny (128 bytes), resulting in many calls to tcdrain
during rendering.

Make the buffer a more reasonable 4096 bytes.
This commit is contained in:
Mark Thomas 2019-04-23 21:40:00 +01:00 committed by Wez Furlong
parent 4ca7214ae2
commit 57983c24de

View File

@ -21,7 +21,7 @@ use crate::render::terminfo::TerminfoRenderer;
use crate::surface::Change; use crate::surface::Change;
use crate::terminal::{cast, Blocking, ScreenSize, Terminal}; use crate::terminal::{cast, Blocking, ScreenSize, Terminal};
const BUF_SIZE: usize = 128; const BUF_SIZE: usize = 4096;
/// Helper function to duplicate a file descriptor. /// Helper function to duplicate a file descriptor.
/// The duplicated descriptor will have the close-on-exec flag set. /// The duplicated descriptor will have the close-on-exec flag set.