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

io: reduce syscalls in poll_read #4840

Merged
merged 1 commit into from
Jul 26, 2022
Merged

io: reduce syscalls in poll_read #4840

merged 1 commit into from
Jul 26, 2022

Commits on Jul 26, 2022

  1. io: reduce syscalls in poll_read

    As the [epoll documentation points out](https://man7.org/linux/man-pages/man7/epoll.7.html), a read that only partially fills a buffer is sufficient to show that the socket buffer has been drained.
    
    We can take advantage of this by clearing readiness in this case, which seems to significantly improve performance under certain conditions.
    carllerche authored and Noah-Kennedy committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    f61d606 View commit details
    Browse the repository at this point in the history