From: Nathan Moinvaziri Date: Tue, 9 Mar 2021 18:18:24 +0000 (-0800) Subject: Increase size of gzip output buffer to be a multiple of the size of deflate's pending... X-Git-Tag: 2.1.0-beta1~583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baff847dc1f6aa957054f33ba182fee2542939a7;p=thirdparty%2Fzlib-ng.git Increase size of gzip output buffer to be a multiple of the size of deflate's pending buffer for improved performance and fewer calls to deflate. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ae656ae05..946265289 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -749,7 +749,6 @@ if(WITH_OPTIM) elseif(BASEARCH_S360_FOUND) if(WITH_DFLTCC_DEFLATE OR WITH_DFLTCC_INFLATE) list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/dfltcc_common.c) - add_definitions(-DGZBUFSIZE=262144) endif() if(WITH_DFLTCC_DEFLATE) add_definitions(-DS390_DFLTCC_DEFLATE) diff --git a/gzguts.h b/gzguts.h index 16029607f..c42587470 100644 --- a/gzguts.h +++ b/gzguts.h @@ -88,7 +88,7 @@ /* default i/o buffer size -- double this for output when reading (this and twice this must be able to fit in an unsigned type) */ #ifndef GZBUFSIZE -# define GZBUFSIZE 8192 +# define GZBUFSIZE 131072 #endif /* gzip modes, also provide a little integrity check on the passed structure */