From 4f5779a8e78e0b1c8b1ecdea88d8456dada17823 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 13 Jan 2012 23:54:40 -0600 Subject: Insert the first two strings in the hash table after a flush. This allows deflate to generate the same output when continuing after a Z_SYNC_FLUSH vs. using deflateSetDictionary() after a Z_FULL_FLUSH or a deflateReset(). It also slightly improves compression when flushing by providing two more strings to possibly match at the start of the new block. --- deflate.h | 1 + 1 file changed, 1 insertion(+) (limited to 'deflate.h') diff --git a/deflate.h b/deflate.h index d605fc6..fbac44d 100644 --- a/deflate.h +++ b/deflate.h @@ -247,6 +247,7 @@ typedef struct internal_state { ulg opt_len; /* bit length of current block with optimal trees */ ulg static_len; /* bit length of current block with static trees */ uInt matches; /* number of string matches in current block */ + uInt insert; /* bytes at end of window left to insert */ #ifdef DEBUG ulg compressed_len; /* total bit length of compressed file mod 2^32 */ -- cgit v1.2.1