stdin: Increase buffer size.
authorAndre Noll <maan@systemlinux.org>
Mon, 4 Jan 2010 06:28:12 +0000 (07:28 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 Jan 2010 06:28:12 +0000 (07:28 +0100)
This seems to make a big difference, the buffer size should definitely
be configurable.

stdin.c

diff --git a/stdin.c b/stdin.c
index d978ee9..c8ee808 100644 (file)
--- a/stdin.c
+++ b/stdin.c
@@ -101,7 +101,7 @@ static void stdin_post_select(struct sched *s, struct task *t)
                t->error = -E_STDIN_EOF;
 }
 
                t->error = -E_STDIN_EOF;
 }
 
-#define STDIN_INPUT_BUFFER_SIZE 4000
+#define STDIN_INPUT_BUFFER_SIZE (1024 * 32)
 static void stdin_post_select_btr(struct sched *s, struct task *t)
 {
        struct stdin_task *sit = container_of(t, struct stdin_task, task);
 static void stdin_post_select_btr(struct sched *s, struct task *t)
 {
        struct stdin_task *sit = container_of(t, struct stdin_task, task);