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

Perfermance improvements for sending. #1434

Merged
merged 2 commits into from
Jan 10, 2020
Merged

Perfermance improvements for sending. #1434

merged 2 commits into from
Jan 10, 2020

Conversation

karknu
Copy link
Contributor

@karknu karknu commented Jan 9, 2020

Implements performance improvements discussed in #1420 .

@karknu karknu marked this pull request as ready for review January 9, 2020 16:10
@karknu karknu requested review from coot and dcoutts January 9, 2020 16:10
Copy link
Contributor

@coot coot left a 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.

@karknu
Copy link
Contributor Author

karknu commented Jan 9, 2020

You don't use vectored IO here yet?

Socket send use vectored IO internally, every chunk will end up in a struct iovec in the call to writev.

@karknu karknu force-pushed the karknu/server_perf branch from 224a32c to 43d5a60 Compare January 10, 2020 09:54
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.
@karknu karknu force-pushed the karknu/server_perf branch from 43d5a60 to 2f37422 Compare January 10, 2020 10:02
@karknu
Copy link
Contributor Author

karknu commented Jan 10, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request Jan 10, 2020
1434: Perfermance improvements for sending. r=karknu a=karknu

Implements performance improvements discussed in #1420 .

Co-authored-by: Karl Knutsson <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jan 10, 2020

@iohk-bors iohk-bors bot merged commit 2f37422 into master Jan 10, 2020
@iohk-bors iohk-bors bot deleted the karknu/server_perf branch January 10, 2020 14:45
coot pushed a commit that referenced this pull request May 16, 2022
1434: Perfermance improvements for sending. r=karknu a=karknu

Implements performance improvements discussed in #1420 .

Co-authored-by: Karl Knutsson <[email protected]>
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