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

Pass ownership for tcp_inbound over ringbuffer #6826

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

eddyashton
Copy link
Member

Experiment in reducing copies. Rather than copying data to the ringbuffer, where the receiver must copy the contents out if they want to defer processing, pass the owning pointer (allocated in a libuv on_alloc) callback over the ringbuffer and let the enclave pass that around and free it when done.

Slightly awkward raw-pointer handling, and needs to be free'd in multiple places, but looks like a significant perf bump?

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.

1 participant