summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2020-06-24 09:02:01 (GMT)
committersebres <sebres@users.sourceforge.net>2020-06-24 09:02:01 (GMT)
commit3f90f816f86882d82b3bda1af1d503759acf5039 (patch)
treeb2f286fce09e28a51d4d11e77bc44592e5b84051 /doc
parent97499f5ed8cc4ea3177e6fb8544c5cd7aba6e029 (diff)
parent094567e57a4212ad576fa972a418938423e8db0d (diff)
downloadtcl-3f90f816f86882d82b3bda1af1d503759acf5039.zip
tcl-3f90f816f86882d82b3bda1af1d503759acf5039.tar.gz
tcl-3f90f816f86882d82b3bda1af1d503759acf5039.tar.bz2
merge zlib-chan-f70ce1fead, [f70ce1fead] - rewritten and optimized inflate:
default read ahead limit set to 4K (instead of 1); better SF/BO prevention; code simplification, no interim copy/move buffers, no decompression d-string, the inflate occurring in single step (ResultDecompress combines ResultGenerate and ResultCopy); better handling in non-blocking mode (also recognizes or distinguish no data/EAGAIN cases).
Diffstat (limited to 'doc')
-rw-r--r--doc/zlib.n22
1 files changed, 14 insertions, 8 deletions
diff --git a/doc/zlib.n b/doc/zlib.n
index fd29e0d..3714fc1 100644
--- a/doc/zlib.n
+++ b/doc/zlib.n
@@ -193,10 +193,18 @@ How hard to compress the data. Must be an integer from 0 (uncompressed) to 9
.TP
\fB\-limit\fI readaheadLimit\fR
.
-The maximum number of bytes ahead to read when decompressing. This defaults to
-1, which ensures that data is always decompressed correctly, but may be
-increased to improve performance. This is more useful when the channel is
-non-blocking.
+The maximum number of bytes ahead to read when decompressing.
+.RS
+.PP
+This option has become \fBirrelevant\fR. It was originally introduced
+to prevent Tcl from reading beyond the end of a compressed stream in
+multi-stream channels to ensure that the data after was left alone for
+further reading, at the cost of speed.
+.PP
+Tcl now automatically returns any bytes it has read beyond the end of
+a compressed stream back to the channel, making them appear as unread
+to further readers.
+.RE
.PP
Both compressing and decompressing channel transformations add extra
configuration options that may be accessed through \fBchan configure\fR. The
@@ -238,10 +246,8 @@ off the data stream.
\fB\-limit\fI readaheadLimit\fR
.
This read-write option is used by decompressing channels to control the
-maximum number of bytes ahead to read from the underlying data source. This
-defaults to 1, which ensures that data is always decompressed correctly, but
-may be increased to improve performance. This is more useful when the channel
-is non-blocking.
+maximum number of bytes ahead to read from the underlying data source. See
+above for more information.
.RE
.SS "STREAMING SUBCOMMAND"
.TP