Re: zlib Dictionary




Mark Adler wrote:

What you'd be trading is the memory cost of about 32K per thread vs.
about 256K per thread to maintain the compression state, against the
additional time required to rebuild the 256K of hash tables every time
you feed it a 32K dictionary. That rebuilding takes almost as long as
compressing 32K.

oh...
something tells me that these functions also rebuild the hash tables
1) int deflate (z_streamp strm, Z_FULL_FLUSH);
2) int deflateReset (z_streamp strm);

is that correct?

thanks,
gr

.