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

optimize by merging 3 unbuffered reads on IPC message header into one #57

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

gergo-salyi
Copy link
Contributor

This reduces the number of system calls done for reading an incoming IPC message from 4 to 2 and improves latency

This reduces the number of system calls done for reading an
incoming IPC message from 4 to 2 and improves latency
@gergo-salyi
Copy link
Contributor Author

Improves a minor thing, I cannot show a real world bug or issue because of it at the moment, but theoretically it's really incorrect to read unbuffered streams with system calls more then necessary. It's might be possible for someone to hit a case where the extra latency (let's say ca. 10 us / extra syscall) matters.

@JayceFayne
Copy link
Owner

LGTM. Thanks!

@JayceFayne JayceFayne merged commit 577f673 into JayceFayne:master Oct 19, 2024
1 check passed
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