stream: bump default buffer size from 2K to 64K

(Only half of the buffer is actually used in a useful way, see manpage
or commit which added the option.)

Might have some advantages with broken network filesystem drivers.

See: #6802
This commit is contained in:
wm4 2019-11-06 21:57:31 +01:00
parent b4466cf0d4
commit e8aae688c3
2 changed files with 2 additions and 2 deletions

View File

@ -4197,7 +4197,7 @@ Cache
Currently, this is used for ``--cache-on-disk`` only.
``--stream-buffer-size=<bytesize>``
Size of the low level stream byte buffer (default: 4KB). This is used as
Size of the low level stream byte buffer (default: 128KB). This is used as
buffer between demuxer and low level I/O (e.g. sockets). Generally, this
can be very small, and the main purpose is similar to the internal buffer
FILE in the C standard library will have.

View File

@ -113,7 +113,7 @@ const struct m_sub_options stream_conf = {
},
.size = sizeof(struct stream_opts),
.defaults = &(const struct stream_opts){
.buffer_size = STREAM_MIN_BUFFER_SIZE,
.buffer_size = 128 * 1024,
},
};