From 95698093f023852ca4365df307c19a1d7cfa3687 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 5 Jul 2015 18:14:53 -0700 Subject: Improve speed of gzprintf() in transparent mode. --- zlib.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'zlib.h') diff --git a/zlib.h b/zlib.h index 11a659a..032c2fd 100644 --- a/zlib.h +++ b/zlib.h @@ -1291,10 +1291,9 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size)); default buffer size is 8192 bytes. This function must be called after gzopen() or gzdopen(), and before any other calls that read or write the file. The buffer memory allocation is always deferred to the first read or - write. Two buffers are allocated, either both of the specified size when - writing, or one of the specified size and the other twice that size when - reading. A larger buffer size of, for example, 64K or 128K bytes will - noticeably increase the speed of decompression (reading). + write. Three times that size in buffer space is allocated. A larger buffer + size of, for example, 64K or 128K bytes will noticeably increase the speed + of decompression (reading). The new buffer size also affects the maximum length for gzprintf(). -- cgit v1.2.3-55-g6feb