summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-03-05 22:50:41 +0000
committerMarcus Brinkmann <marcus@gnu.org>2004-03-05 22:50:41 +0000
commit6f10d4f6fe25e37efabf45c3a6b5cf573f4bd66c (patch)
treed7d9c095f932a1528ca0e43d50717ddf43d20368 /term
parentac1cab88f6e43ece947ef2e212f0a732f9c39d81 (diff)
2004-03-05 Marcus Brinkmann <marcus@gnu.org>
* term.h (QUEUE_LOWAT): Increase to 200. (QUEUE_HIWAT): Increase to 8100.
Diffstat (limited to 'term')
-rw-r--r--term/ChangeLog5
-rw-r--r--term/term.h8
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;