Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Faster UDP/IO on Apple platforms #1993

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

larseggert
Copy link

@larseggert larseggert commented Sep 20, 2024

Work in progress.

Question to the quinn maintainers: Is there interest in seeing TX support via sendmsg_x? (Since sendmmsg was removed.)

CC @mxinden

@Ralith
Copy link
Collaborator

Ralith commented Sep 20, 2024

Is there interest in seeing TX support via sendmsg_x?

We found there wasn't much performance benefit, and was considerable difficulty taking advantage of, sendmmsg-style batching. IIRC the _x functions on macOS have more to offer than that, though. Will this unblock segmentation offload or other incidental optimizations?

fn main() {
// Generate the bindings for Apple's private `recvmsg_x` from
// https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/socket.h.
let bindings = bindgen::Builder::default()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bindgen is a pretty big and unstable dependency. Would it be simpler to commit the generated bindings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants