=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.644 retrieving revision 1.645 diff -c -r1.644 -r1.645 *** src/usr.bin/tmux/tmux.h 2016/09/12 15:40:58 1.644 --- src/usr.bin/tmux/tmux.h 2016/09/16 13:43:41 1.645 *************** *** 1,4 **** ! /* $OpenBSD: tmux.h,v 1.644 2016/09/12 15:40:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tmux.h,v 1.645 2016/09/16 13:43:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 59,67 **** /* Automatic name refresh interval, in microseconds. Must be < 1 second. */ #define NAME_INTERVAL 500000 ! /* The maximum amount of data to hold from a pty (the event high watermark). */ ! #define READ_SIZE 4096 /* Attribute to make gcc check printf-like arguments. */ #define printflike(a, b) __attribute__ ((format (printf, a, b))) --- 59,77 ---- /* 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 + /* Attribute to make gcc check printf-like arguments. */ #define printflike(a, b) __attribute__ ((format (printf, a, b))) *************** *** 883,888 **** --- 893,901 ---- int fd; struct bufferevent *event; + + u_int wmark_size; + u_int wmark_hits; struct input_ctx *ictx;