Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1623647

Browse files
committed
specialize io::copy to use copy_file_range, splice or sendfile
Currently it only applies to linux systems. It can be extended to make use of similar syscalls on other unix systems.
1 parent 35debd4 commit 1623647

File tree

7 files changed

+540
-80
lines changed

7 files changed

+540
-80
lines changed

library/std/src/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
16561656
/// the length of the `to` file as reported by `metadata`.
16571657
///
16581658
/// If you’re wanting to copy the contents of one file to another and you’re
1659-
/// working with [`File`]s, see the [`io::copy`] function.
1659+
/// working with [`File`]s, see the [`io::copy()`] function.
16601660
///
16611661
/// # Platform-specific behavior
16621662
///

0 commit comments

Comments
 (0)