]> git.lizzy.rs Git - zlib.git/commitdiff
Update inflateBack() comments, since inflate() can be faster.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 24 Feb 2013 04:12:20 +0000 (20:12 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 24 Feb 2013 04:12:20 +0000 (20:12 -0800)
zlib.h

diff --git a/zlib.h b/zlib.h
index 55e3c2ceece8008753055bf615d9ad93dd980321..ee38237b00c3a5cf5691dc671756688bbf79490d 100644 (file)
--- 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.