-
Notifications
You must be signed in to change notification settings - Fork 231
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
implement SendMsgZc for more efficent tcp socket message passing #333
Comments
In monoio there's |
Can you point it to me in the docs?, because I couldn't find it
…On Wed, Feb 5, 2025, 10:08 AM ihc童鞋@提不起劲 ***@***.***> wrote:
In monoio there's splice support. Could you check if it works for your
need?
—
Reply to this email directly, view it on GitHub
<#333 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWLOCCHWZDXLFOZQJKP4ZO32OG2HBAVCNFSM6AAAAABWPOPQ4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZVHA2TSNJQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Here is the splice op: https://github.com/bytedance/monoio/blob/master/monoio/src/io/splice.rs |
Thanks a lot, this does help, but I think this should be documented on docs.rs, because it can't be found there, and there should also be a directional version |
Is your feature request related to a problem? Please describe.
In scenarios where we need to send large data buffers over sockets, the existing APIs require additional memory copies, which can lead to inefficiencies in terms of performance, especially in high-throughput applications.
Describe the solution you'd like
an Api as follows
and
Describe alternatives you've considered
tokio_splice
but that doesn't use io_uring, furthermore splice still copies, just not as much as a full read then writeThe text was updated successfully, but these errors were encountered: