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:
parent
4ca7214ae2
commit
57983c24de
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user