]> git.lizzy.rs Git - zlib.git/commit
Insert the first two strings in the hash table after a flush.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 14 Jan 2012 05:54:40 +0000 (23:54 -0600)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 14 Jan 2012 05:54:40 +0000 (23:54 -0600)
commit4f5779a8e78e0b1c8b1ecdea88d8456dada17823
tree267f14f252dbc3f23e8c7f34a7ddce633491754e
parent0b828b4aa6c962ab46eae624578d77b35395b2c1
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.c
deflate.h