diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2020-06-18 20:22:09 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-06-28 11:16:05 +0200 |
commit | 10be7c55f66e08f97c15afb5c5af985094155b5a (patch) | |
tree | 7311a43bb3c8c79d3825d9da65e932f256a732d5 /inffast.c | |
parent | e40d88adc9e8180969c6c56a0deb4ec69c3ec92b (diff) |
Only calculate inflate chunk size once and store it for future use for performance.
Diffstat (limited to 'inffast.c')
-rw-r--r-- | inffast.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -270,7 +270,7 @@ void ZLIB_INTERNAL zng_inflate_fast(PREFIX3(stream) *strm, unsigned long start) operations can write beyond `out+len` so long as they stay within 258 bytes of `out`. */ - if (dist >= len || dist >= functable.chunksize()) + if (dist >= len || dist >= state->chunksize) out = functable.chunkcopy(out, out - dist, len); else out = functable.chunkmemset(out, dist, len); |