From d09a640816b5152b8dfc769834a183223c3c7841 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Thu, 10 Mar 2022 08:57:13 -0800 Subject: [PATCH] Use large default buffer size for minideflate to match minigzip use of GZBUFSIZE. --- test/minideflate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/minideflate.c b/test/minideflate.c index 47c58a55..b2144f18 100644 --- a/test/minideflate.c +++ b/test/minideflate.c @@ -24,6 +24,9 @@ } \ } +/* Default read/write i/o buffer size based on GZBUFSIZE */ +#define BUFSIZE 131072 + /* =========================================================================== * deflate() using specialized parameters */ @@ -220,8 +223,8 @@ int main(int argc, char **argv) { int32_t window_bits = INT32_MAX; int32_t strategy = Z_DEFAULT_STRATEGY; int32_t level = Z_DEFAULT_COMPRESSION; - int32_t read_buf_size = 4096; - int32_t write_buf_size = 4096; + int32_t read_buf_size = BUFSIZE; + int32_t write_buf_size = BUFSIZE; int32_t flush = Z_NO_FLUSH; uint8_t copyout = 0; uint8_t uncompr = 0; -- 2.47.2