about summary refs log tree commit diff
path: root/library/std/src/sys/unix/net.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-12-01 23:46:13 +0100
committerGitHub <noreply@github.com>2020-12-01 23:46:13 +0100
commit9e26fc60b1a91e28e799fd3ed33f8b93db13be2a (patch)
tree3fc34123494ce7c195cd6aac55fb7546f5d18c6f /library/std/src/sys/unix/net.rs
parent3d631b094bf6322ad77296f843275a06be5e743e (diff)
parent59874516fae2abd97539c2c50601302c6b61ee0f (diff)
downloadrust-9e26fc60b1a91e28e799fd3ed33f8b93db13be2a.tar.gz
rust-9e26fc60b1a91e28e799fd3ed33f8b93db13be2a.zip
Rollup merge of #79600 - nicokoch:kernel_copy_unixstream, r=m-ou-se
std::io: Use sendfile for UnixStream

`UnixStream` was forgotten in #75272 .

Benchmark yields the following results.
Before:
`running 1 test
test sys::unix::kernel_copy::tests::bench_file_to_uds_copy        ... bench:      54,399 ns/iter (+/- 6,817) = 2409 MB/s`

After:
`running 1 test
test sys::unix::kernel_copy::tests::bench_file_to_uds_copy        ... bench:      18,627 ns/iter (+/- 6,007) = 7036 MB/s`
Diffstat (limited to 'library/std/src/sys/unix/net.rs')
0 files changed, 0 insertions, 0 deletions