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

uvadapter: reduce number of uv_poll_start calls #1098

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

michael-grunder
Copy link
Collaborator

Internally uv_poll_start iterates over all
attached event handlers to update event mask. It's
quite expensive operation if there many event handlers attached
to a loop.
As redisLibuvEvents.events is a copy of what libuv should see,
we can rely on it to avoid event mask updates.

Signed-off-by: Anton Tiurin noxiouz@yandex.ru

Internally uv_poll_start iterates over all
attached event handlers to update event mask. It's
quite expensive operation if there many event handlers attached
to a loop.
As redisLibuvEvents.events is a copy of what libuv should see,
we can rely on it to avoid event mask updates.

Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
@michael-grunder michael-grunder merged commit ca4a0e8 into master Sep 1, 2022
@michael-grunder michael-grunder deleted the libuv_reduce_poll_start_calls branch September 1, 2022 19:37
@michael-grunder
Copy link
Collaborator Author

Thanks, @noxiouz, and apologies for the excessive delay!

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