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

sonic.CodecConn should provide batch writing #94

Open
sergiu128 opened this issue Jul 10, 2023 · 0 comments
Open

sonic.CodecConn should provide batch writing #94

sergiu128 opened this issue Jul 10, 2023 · 0 comments
Assignees
Labels

Comments

@sergiu128
Copy link
Contributor

Some codecs define messages as being composed of smaller units, let's call them frames (like in websocket). We want to have the ability to send multiple frames in one io call. Right now, if we have 10 frames ready to send, we write to the underlying socket 10 times.

The interface would be something like:
AsyncWriteBatchBegin, AsyncWriteBatchItem and AsyncWriteBatchEnd

@sergiu128 sergiu128 self-assigned this Jul 10, 2023
@sergiu128 sergiu128 added this to the Improved websocket. milestone Aug 18, 2023
@ethanf ethanf removed this from the Improved websocket. milestone Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants