From 35a0606de154308a6dad93a82404907683048104 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Feb 2017 08:25:12 +0000 Subject: Remove event watermarks, don't work well enough to be worth it. --- tmux.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index f111d857..f15858ce 100644 --- a/tmux.h +++ b/tmux.h @@ -64,18 +64,8 @@ struct tmuxproc; /* Automatic name refresh interval, in microseconds. Must be < 1 second. */ #define NAME_INTERVAL 500000 -/* - * Event watermarks. We start with FAST then if we hit full size for HITS reads - * in succession switch to SLOW, and return when we hit EMPTY the same number - * of times. - */ -#define READ_FAST_SIZE 4096 -#define READ_SLOW_SIZE 128 - -#define READ_FULL_SIZE (4096 - 16) -#define READ_EMPTY_SIZE 16 - -#define READ_CHANGE_HITS 3 +/* Maximum size of data to hold from a pane. */ +#define READ_SIZE 4096 /* Attribute to make GCC check printf-like arguments. */ #define printflike(a, b) __attribute__ ((format (printf, a, b))) @@ -240,7 +230,7 @@ enum tty_code_code { TTYC_DL1, /* delete_line, dl */ TTYC_E3, TTYC_ECH, /* erase_chars, ec */ - TTYC_ED, /* csr_eos, cd */ + TTYC_ED, /* clr_eos, cd */ TTYC_EL, /* clr_eol, ce */ TTYC_EL1, /* clr_bol, cb */ TTYC_ENACS, /* ena_acs, eA */ @@ -762,9 +752,6 @@ struct window_pane { struct event resize_timer; - u_int wmark_size; - u_int wmark_hits; - struct input_ctx *ictx; struct grid_cell colgc; -- cgit From 9cc02d1498fec2f4234575fd7cc38f3eb68cfd0e Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Feb 2017 08:50:10 +0000 Subject: Trying to avoid the occasional newline by saving the last cell on screen is not actually helping us much and just adds complexity, so don't bother. --- tmux.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index f15858ce..f9f60e6a 100644 --- a/tmux.h +++ b/tmux.h @@ -1105,9 +1105,6 @@ struct tty_ctx { /* The background colour used for clearing (erasing). */ u_int bg; - - /* Saved last cell on line. */ - struct grid_cell last_cell; }; /* Saved message entry. */ -- cgit