-
-
Notifications
You must be signed in to change notification settings - Fork 431
[quinn-udp] Support vectored sends. (WIP) #2178
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
base: main
Are you sure you want to change the base?
Conversation
Initial attempt for linux. Not sure what to do about generic/windows.
@@ -90,7 +90,7 @@ pub fn criterion_benchmark(c: &mut Criterion) { | |||
send_state.send((&send_socket).into(), &transmit) | |||
}) | |||
.unwrap(); | |||
sent += transmit.contents.len(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is why I renamed contents
, otherwise it wouldn't be a breaking change.
udp::Transmit { | ||
destination: t.destination, | ||
ecn: t.ecn.map(udp_ecn), | ||
contents: buffer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors with a reference to a temporary variable if you do:
buffers: &[IoSlice::new(buffer)],
This looks good to me overall.
I think Windows should look very similar to Unix here, with easy first-class support. |
Initial attempt for linux. Not sure what to do about Windows.