Files
rust/library
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-08-29 12:13:19 -07:00
2024-07-28 14:46:29 -04:00
2024-12-24 19:00:57 +01:00
2024-12-24 19:00:57 +01:00
2024-11-19 18:54:20 +01:00
2024-12-26 16:11:44 +01:00
2024-12-27 22:26:08 +00:00