summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-04-02 17:17:44 +0200
committerMax Kellermann <max@musicpd.org>2020-04-02 17:17:58 +0200
commitafe2aaa5f6dbbd084f3af8d01f87f2b6b83a1656 (patch)
tree48e772f49881a2f7a3cd0da5a21011d19136f1ac
parent9b11caa0e6222746219da3da58d98915f2d71fcb (diff)
fs/io/GzipOutputStream: increase buffer size to 16 kB
Reduce I/O overhead.
-rw-r--r--src/fs/io/GzipOutputStream.cxx4
1 files 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);