]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Decrease read buffer size to 64 KiB
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 30 Jul 2016 13:27:27 +0000 (15:27 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 30 Jul 2016 13:27:27 +0000 (15:27 +0200)
ccache.h

index d01eae088f4edfcb653f3f607420bf736fb46584..7b29bb8cd65db0193d420bfbd609e156b03198aa 100644 (file)
--- 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