diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2015-07-05 18:14:53 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2015-07-05 18:14:53 -0700 |
commit | 95698093f023852ca4365df307c19a1d7cfa3687 (patch) | |
tree | 743b907c5449f617343e8bec546eabbb650df0a8 /zlib.h | |
parent | 8a979f6c7986574e37316148cd8ca440c3bc08a3 (diff) | |
download | zlib-95698093f023852ca4365df307c19a1d7cfa3687.tar.gz zlib-95698093f023852ca4365df307c19a1d7cfa3687.tar.bz2 zlib-95698093f023852ca4365df307c19a1d7cfa3687.zip |
Improve speed of gzprintf() in transparent mode.
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1291,10 +1291,9 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size)); | |||
1291 | default buffer size is 8192 bytes. This function must be called after | 1291 | default buffer size is 8192 bytes. This function must be called after |
1292 | gzopen() or gzdopen(), and before any other calls that read or write the | 1292 | gzopen() or gzdopen(), and before any other calls that read or write the |
1293 | file. The buffer memory allocation is always deferred to the first read or | 1293 | file. The buffer memory allocation is always deferred to the first read or |
1294 | write. Two buffers are allocated, either both of the specified size when | 1294 | write. Three times that size in buffer space is allocated. A larger buffer |
1295 | writing, or one of the specified size and the other twice that size when | 1295 | size of, for example, 64K or 128K bytes will noticeably increase the speed |
1296 | reading. A larger buffer size of, for example, 64K or 128K bytes will | 1296 | of decompression (reading). |
1297 | noticeably increase the speed of decompression (reading). | ||
1298 | 1297 | ||
1299 | The new buffer size also affects the maximum length for gzprintf(). | 1298 | The new buffer size also affects the maximum length for gzprintf(). |
1300 | 1299 | ||