[Zlib-devel] zlib compiled with -DFASTEST

Mark Adler madler at madler.net
Sun Nov 13 16:51:25 EST 2011


On Nov 9, 2011, at 4:52 AM, Petr Sumbera wrote:
> can somebody please help me to understand what exactly changes when FASTEST is defined during compilation?

It uses an approach for string matching that saves only the most recent occurrence for a given hash value.  The normal deflate keeps a list of recent matches for each hash value.

> I'm interested if there are some limitation or incompatibilities. And if not why it's not allowed to chose this method during runtime not just during compilation.

No, there are no limitations or incompatibilities.  There is no fundamental reason that it could not be provided as a run-time option.  I will put that on my to-do list.

Mark





More information about the Zlib-devel mailing list