diff options
-rw-r--r-- | term/ChangeLog | 5 | ||||
-rw-r--r-- | term/term.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/term/ChangeLog b/term/ChangeLog index ada36fc6..aa997d57 100644 --- a/term/ChangeLog +++ b/term/ChangeLog @@ -1,3 +1,8 @@ +2004-03-05 Marcus Brinkmann <marcus@gnu.org> + + * term.h (QUEUE_LOWAT): Increase to 200. + (QUEUE_HIWAT): Increase to 8100. + 2003-04-25 Alfred M. Szmidt <ams@kemisten.nu> * term.h (rdev): Change type to dev_t. diff --git a/term/term.h b/term/term.h index 28f4fe10..8448d78e 100644 --- a/term/term.h +++ b/term/term.h @@ -80,8 +80,12 @@ long termflags; #define NO_OWNER 0x00000200 /* there is no foreground_id */ #define ICKY_ASYNC 0x00000400 /* some user has set O_ASYNC */ -#define QUEUE_LOWAT 100 -#define QUEUE_HIWAT 300 +/* Use a high watermark that allows about as much input as once as + other operating systems do. Using something just a bit smaller + than a power of 2 helps to make maximum use of the buffer and avoid + reallocation for just a few bytes. */ +#define QUEUE_LOWAT 200 +#define QUEUE_HIWAT 8100 /* Global lock */ struct mutex global_lock; |