-
Notifications
You must be signed in to change notification settings - Fork 87
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
Perfermance improvements for sending. #1434
Conversation
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.
LGTM, just a minor comment.
You don't use vectored IO here yet? I'll need to extend the Win32-network
api to include scatter / gather IO there.
Socket send use vectored IO internally, every chunk will end up in a |
224a32c
to
43d5a60
Compare
Reduce the number of syscalls by grouping multiple CBOR messages from the same miniprotocol together. Order within a miniprotocol is still precerved and fairness between miniprotocol is still enforced.
Calling getSocketName and getSocketOption for every SDU proved too costly. Use a static max segment size instead. Corresponds to about 8 full sized packets.
43d5a60
to
2f37422
Compare
bors r+ |
1434: Perfermance improvements for sending. r=karknu a=karknu Implements performance improvements discussed in #1420 . Co-authored-by: Karl Knutsson <[email protected]>
1434: Perfermance improvements for sending. r=karknu a=karknu Implements performance improvements discussed in #1420 . Co-authored-by: Karl Knutsson <[email protected]>
Implements performance improvements discussed in #1420 .