about summary refs log tree commit diff
path: root/src/libstd/sys/unix/ext/mod.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2016-04-02 22:12:52 -0700
committerSteven Fackler <sfackler@gmail.com>2016-04-02 22:24:42 -0700
commit8128817119e479b0610685e3fc7a6ff21cde5abc (patch)
treefff3dcd6d663f2499c8419bd9d53ab8c933917b9 /src/libstd/sys/unix/ext/mod.rs
parent5ab11d72cab23f0cea63cbf7a88817ff2a45bab0 (diff)
downloadrust-8128817119e479b0610685e3fc7a6ff21cde5abc.tar.gz
rust-8128817119e479b0610685e3fc7a6ff21cde5abc.zip
Drop the default buffer size to 8K
The 64k capacity was picked by me a couple of years ago in the initial
implementation of buffered IO adaptors:
https://github.com/rust-lang/rust/pull/9091/files#diff-b131eeef531ad098b32f49695a031008R62.
64K was picked for symmetry with libuv, which we no longer use.

64K is *way* larger than the default size of any other language that I
can find. C, C++, and Java default to 8K, and Go defaults to 4K. There
have been a variety of issues filed relating to this such as #31885.

Closes #31885
Diffstat (limited to 'src/libstd/sys/unix/ext/mod.rs')
0 files changed, 0 insertions, 0 deletions