From: Mark Adler Date: Sun, 24 Feb 2013 04:12:20 +0000 (-0800) Subject: Update inflateBack() comments, since inflate() can be faster. X-Git-Tag: v1.2.7.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=931aa25aea560e8a9f5d425bdd2a44a1f2eff00d;p=thirdparty%2Fzlib-ng.git Update inflateBack() comments, since inflate() can be faster. --- diff --git a/zlib.h b/zlib.h index 55e3c2cee..ee38237b0 100644 --- a/zlib.h +++ b/zlib.h @@ -1031,11 +1031,12 @@ ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm, out_func out, void FAR *out_desc)); /* inflateBack() does a raw inflate with a single call using a call-back - interface for input and output. This is more efficient than inflate() for - file i/o applications in that it avoids copying between the output and the - sliding window by simply making the window itself the output buffer. This - function trusts the application to not change the output buffer passed by - the output function, at least until inflateBack() returns. + interface for input and output. This is potentially more efficient than + inflate() for file i/o applications, in that it avoids copying between the + output and the sliding window by simply making the window itself the output + buffer. inflate() can be faster on modern CPUs when used with large + buffers. inflateBack() trusts the application to not change the output + buffer passed by the output function, at least until inflateBack() returns. inflateBackInit() must be called first to allocate the internal state and to initialize the state with the user-provided window buffer.