Files
rust/library/std/src
bors 3c1e750364 Auto merge of #134547 - SUPERCILEX:unify-copy, r=thomcc
Unify fs::copy and io::copy on Linux

Currently, `fs::copy` first tries a regular file copy (via copy_file_range) and then falls back to userspace read/write copying. We should use `io::copy` instead as it tries copy_file_range, sendfile, and splice before falling back to userspace copying. This was discovered here: https://github.com/SUPERCILEX/fuc/issues/40

Perf impact: `fs::copy` will now have two additional statx calls to decide which syscall to use. I wonder if we should get rid of the statx calls and only continue down the next fallback when the relevant syscalls say the FD isn't supported.
2024-12-28 13:49:45 +00:00
..
2024-07-29 08:26:52 +10:00
2024-12-27 10:07:10 +00:00
2024-11-02 11:27:14 +01:00
2024-12-21 01:26:47 +00:00
2024-11-12 15:08:41 -06:00
2024-07-29 08:26:52 +10:00
2024-12-05 00:26:13 +00:00
2024-08-01 15:38:51 -04:00
2024-12-13 11:53:01 +01:00
2024-12-21 01:26:47 +00:00
2024-10-22 20:18:11 -04:00