From: Nathan Moinvaziri Date: Thu, 10 Mar 2022 16:57:13 +0000 (-0800) Subject: Use large default buffer size for minideflate to match minigzip use of GZBUFSIZE. X-Git-Tag: 2.1.0-beta1~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d09a640816b5152b8dfc769834a183223c3c7841;p=thirdparty%2Fzlib-ng.git Use large default buffer size for minideflate to match minigzip use of GZBUFSIZE. --- 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;