mirror of
https://github.com/GerbilSoft/zlib-ng.git
synced 2025-06-18 11:35:35 -04:00
Inserting strings is not slow any longer, remove bypass in deflate_medium().
This commit is contained in:
parent
8026095224
commit
322753f36e
@ -63,10 +63,8 @@ static void insert_match(deflate_state *s, struct match match) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Insert new strings in the hash table only if the match length
|
||||
* is not too large. This saves time but degrades compression.
|
||||
*/
|
||||
if (match.match_length <= 16 * s->max_insert_length && s->lookahead >= WANT_MIN_MATCH) {
|
||||
/* Insert new strings in the hash table. */
|
||||
if (s->lookahead >= WANT_MIN_MATCH) {
|
||||
match.match_length--; /* string at strstart already in table */
|
||||
match.strstart++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user