From 9b11caa0e6222746219da3da58d98915f2d71fcb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Apr 2020 17:17:06 +0200 Subject: [PATCH] fs/io/BufferedReader: larger default buffer (4 kB -> 16 kB) Reduce I/O overhead. --- src/fs/io/BufferedReader.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/io/BufferedReader.hxx b/src/fs/io/BufferedReader.hxx index 0835c3d35..5b3f6a9cc 100644 --- a/src/fs/io/BufferedReader.hxx +++ b/src/fs/io/BufferedReader.hxx @@ -40,7 +40,7 @@ class BufferedReader { public: explicit BufferedReader(Reader &_reader) noexcept - :reader(_reader), buffer(4096) {} + :reader(_reader), buffer(16384) {} /** * Reset the internal state. Should be called after rewinding