Repository navigation
docs(audits): fast_io fallback path performance on macOS vs Linux - #3810
Merged
Merged
Conversation
Document the macOS-specific code paths in crates/fast_io/src/, contrast them against the Linux io_uring/copy_file_range/sendfile fast paths, quantify the structural performance gap on small-file vs large-file workloads, point at where dispatch_io and kqueue would close it, and recommend cross-platform micro-benchmarks. Refs #1652.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Document the macOS-specific code paths in crates/fast_io/src/, contrast them against the Linux io_uring/copy_file_range/sendfile fast paths, quantify the structural performance gap on small-file vs large-file workloads, point at where dispatch_io and kqueue would close it, and recommend cross-platform micro-benchmarks. Refs #1652.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
) Document the macOS-specific code paths in crates/fast_io/src/, contrast them against the Linux io_uring/copy_file_range/sendfile fast paths, quantify the structural performance gap on small-file vs large-file workloads, point at where dispatch_io and kqueue would close it, and recommend cross-platform micro-benchmarks. Refs #1652.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates/fast_io/src/(clonefile/fcopyfile underplatform_copy/dispatch.rs, sendfile/splice cfg gating, theWriter::Bufferedfallback intransfer/disk_commit/writer.rs, and the io_uring/iocp stubs that gate out async backends on Darwin).IORING_REGISTER_BUFFERS/FILES/PBUF ring,copy_file_range,sendfile,splice) with their macOS analogues; whole-file copy is the only category at structural parity.dispatch_io(Fix client module test visibility and import duplication #1653, deferred) for chunk writes and the socket path; Fix IPv6 zone identifier parsing in module list requests #1657 (F_NOCACHE+pwritev) for the cheap small-file win; Adjust CI coverage gate and extend cross-platform builds #1385 (kqueue backend) for structural parity with the Windows IOCP path that closed under PR docs(design): IOCP transfer-pipeline wiring #3698.pwritevvspwrite, buffer-pool destructor reentrancy, cross-platform parity baseline).Refs #1652.
Test plan