diff options
author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2020-03-26 10:05:00 -0400 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-04-30 10:01:46 +0200 |
commit | 51e695092d18cae456af802bec106192f73d9bf6 (patch) | |
tree | f70d8311c3c75eeb072cd02ca2093f58ee09e596 /deflate_fast.c | |
parent | 78e94a1e9f22e7e4f04525b2ab9482981d912414 (diff) |
Replaced insert_string with quick_insert_string if length is 1.
Diffstat (limited to 'deflate_fast.c')
-rw-r--r-- | deflate_fast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deflate_fast.c b/deflate_fast.c index af14011..5659926 100644 --- a/deflate_fast.c +++ b/deflate_fast.c @@ -41,7 +41,7 @@ ZLIB_INTERNAL block_state deflate_fast(deflate_state *s, int flush) { */ hash_head = NIL; if (s->lookahead >= MIN_MATCH) { - hash_head = functable.insert_string(s, s->strstart, 1); + hash_head = functable.quick_insert_string(s, s->strstart); } /* Find the longest match, discarding those <= prev_length. @@ -70,7 +70,7 @@ ZLIB_INTERNAL block_state deflate_fast(deflate_state *s, int flush) { s->strstart++; #ifdef NOT_TWEAK_COMPILER do { - functable.insert_string(s, s->strstart, 1); + functable.quick_insert_string(s, s->strstart); s->strstart++; /* strstart never exceeds WSIZE-MAX_MATCH, so there are * always MIN_MATCH bytes ahead. @@ -90,7 +90,7 @@ ZLIB_INTERNAL block_state deflate_fast(deflate_state *s, int flush) { #ifndef NOT_TWEAK_COMPILER functable.insert_string(s, s->strstart + 2 - MIN_MATCH, MIN_MATCH - 2); #else - functable.insert_string(s, s->strstart + 2 - MIN_MATCH, 1); + functable.quick_insert_string(s, s->strstart + 2 - MIN_MATCH); #if MIN_MATCH != 3 #warning Call insert_string() MIN_MATCH-3 more times #endif |