summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2015-07-05 18:14:53 -0700
committerMark Adler <madler@alumni.caltech.edu>2015-07-05 18:14:53 -0700
commit95698093f023852ca4365df307c19a1d7cfa3687 (patch)
tree743b907c5449f617343e8bec546eabbb650df0a8 /zlib.h
parent8a979f6c7986574e37316148cd8ca440c3bc08a3 (diff)
downloadzlib-95698093f023852ca4365df307c19a1d7cfa3687.tar.gz
Improve speed of gzprintf() in transparent mode.
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h7
1 files changed, 3 insertions, 4 deletions
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().