Re: [RFC] CryptoAPI & Compression

David Woodhouse
2005-04-01T14:46:20Z

On Fri, 2005-04-01 at 15:36 +0100, Artem B. Bityuckiy wrote:
> In our code we do zlib_deflate(stream, Z_SYNC_FLUSH), so we always flush
> the output. So the final zlib_deflate(stream, Z_FINISH) requires 1 byte
> for the EOB marker and 4 bytes for adler32 (5 bytes total). Thats all. If
> we compress a huge buffer, then we still need to output those 5 bytes as
> well. I.e, the overhead of each block *is not accumulated* ! I even need
> to make the reserved space less then 12 bytes!

Hm. Could we avoid using Z_SYNC_FLUSH and stick with a larger amount?
That would give us better compression.

--
dwmw2