10

std::io: Use sendfile for UnixStream by nicokoch · Pull Request #79600 · rust-la...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/79600
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Contributor

nicokoch commented 19 days ago

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK