commit | 4f5779a8e78e0b1c8b1ecdea88d8456dada17823 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Fri Jan 13 23:54:40 2012 -0600 |
committer | Mark Adler <madler@alumni.caltech.edu> | Fri Jan 13 23:54:40 2012 -0600 |
tree | 267f14f252dbc3f23e8c7f34a7ddce633491754e | |
parent | 0b828b4aa6c962ab46eae624578d77b35395b2c1 [diff] |
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.