From afe2aaa5f6dbbd084f3af8d01f87f2b6b83a1656 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Apr 2020 17:17:44 +0200 Subject: [PATCH] fs/io/GzipOutputStream: increase buffer size to 16 kB Reduce I/O overhead. --- src/fs/io/GzipOutputStream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/io/GzipOutputStream.cxx b/src/fs/io/GzipOutputStream.cxx index 67f97a278..051582ae3 100644 --- a/src/fs/io/GzipOutputStream.cxx +++ b/src/fs/io/GzipOutputStream.cxx @@ -62,7 +62,7 @@ GzipOutputStream::Flush() z.avail_in = 0; while (true) { - Bytef output[4096]; + Bytef output[16384]; z.next_out = output; z.avail_out = sizeof(output); @@ -87,7 +87,7 @@ GzipOutputStream::Write(const void *_data, size_t size) z.avail_in = size; while (z.avail_in > 0) { - Bytef output[4096]; + Bytef output[16384]; z.next_out = output; z.avail_out = sizeof(output);