From: Joel Rosdahl Date: Sat, 30 Jul 2016 13:27:27 +0000 (+0200) Subject: Decrease read buffer size to 64 KiB X-Git-Tag: v3.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16eb261cde99571dc9a9fc28f53a2c2380716ba2;p=thirdparty%2Fccache.git Decrease read buffer size to 64 KiB --- diff --git a/ccache.h b/ccache.h index d01eae088..7b29bb8cd 100644 --- a/ccache.h +++ b/ccache.h @@ -75,8 +75,8 @@ enum stats { (strlen(s) >= strlen(suffix) \ && str_eq((s) + strlen(s) - strlen(suffix), (suffix))) -// Buffer size for I/O operations. -#define READ_BUFFER_SIZE (1 << 18) +// Buffer size for I/O operations. Should be a multiple of 4 KiB. +#define READ_BUFFER_SIZE 65536 // ---------------------------------------------------------------------------- // args.c