From: Ben Gras Date: Thu, 12 May 2011 17:04:55 +0000 (+0200) Subject: larger i/o buffer for exec() X-Git-Tag: v3.2.0~561 X-Git-Url: http://zhaoyanbai.com/repos/doc/mandoc_char.7.html?a=commitdiff_plain;h=674cd6fd48ab49139b834f624524c07c0abb035d;p=minix.git larger i/o buffer for exec() . makes exec() for large executables (e.g. clang, gcc) significantly faster Thanks to Antoine Leca. --- diff --git a/servers/vfs/exec.c b/servers/vfs/exec.c index 09ba60235..b78ca8b07 100644 --- a/servers/vfs/exec.c +++ b/servers/vfs/exec.c @@ -552,7 +552,7 @@ phys_bytes seg_bytes /* how much is to be transferred? */ unsigned n, o; u64_t new_pos; unsigned int cum_io; - char buf[1024]; + static char buf[128 * 1024]; assert((seg == T)||(seg == D));