From 16eb261cde99571dc9a9fc28f53a2c2380716ba2 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 30 Jul 2016 15:27:27 +0200 Subject: [PATCH] Decrease read buffer size to 64 KiB --- ccache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2