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

Is ShadowStreamReader's ReadZeroCopy method really zerocopy? #35

Closed
zzzzer91 opened this issue Feb 12, 2023 · 2 comments
Closed

Is ShadowStreamReader's ReadZeroCopy method really zerocopy? #35

zzzzer91 opened this issue Feb 12, 2023 · 2 comments

Comments

@zzzzer91
Copy link

I'm learning to use zerocopy in go, and I found this awesome project. But when I going deep on the source code of zerocopy package, I can not find related code about zerocopy, am I wrong ?
Thank you!

@database64128
Copy link
Owner

What kind of zerocopy are you aiming for? The purpose of the zerocopy package in this project is to provide a set of interfaces that help minimizing copying between different components. The outcome is that, for typical configurations, there is no copying of payload happening in userspace.

If you are talking about SO_ZEROCOPY and MSG_ZEROCOPY, I'm afraid this project does not support these.

@zzzzer91
Copy link
Author

What kind of zerocopy are you aiming for? The purpose of the zerocopy package in this project is to provide a set of interfaces that help minimizing copying between different components. The outcome is that, for typical configurations, there is no copying of payload happening in userspace.

If you are talking about SO_ZEROCOPY and MSG_ZEROCOPY, I'm afraid this project does not support these.

Ok, I get it now, thanks!

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

No branches or pull requests

2 participants