Please sign in to comment.
Use zlib defaults.
According to the documentation for deflateInit: The WindowBits parameter is the base two logarithm of the window size (the size of the history buffer). It should be in the range 9 through 15. Larger values of this parameter result in better compression at the expense of memory usage. The default value is 15 if deflateInit/2. A negative WindowBits value suppresses the zlib header (and checksum) from the stream. Note that the zlib source mentions this only as a undocumented feature. Setting it to 31 made it incompatible with other zlib implementations (but we're still able to read what was stored before). Change-Id: I6c21a37a30ef2180ef5fae69231887a59e94b9a4 Reviewed-on: http://review.couchbase.org/11069 Tested-by: Farshid Ghods <email@example.com> Reviewed-by: Dustin Sallings <firstname.lastname@example.org>
- Loading branch information...