8000 gh-106751: Optimize _PolllikeSelector for many iteration case by eendebakpt · Pull Request #106884 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106751: Optimize _PolllikeSelector for many iteration case #106884

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

Merged
merged 8 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whitespace
  • Loading branch information
eendebakpt committed Jul 19, 2023
commit 6bc10876568b93c8f74d4676e1bceb8ea1a36a36
1 change: 1 addition & 0 deletions Lib/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def select(self, timeout=None):
fd_event_list = self._selector.poll(timeout)
except InterruptedError:
return ready

fd_to_key_get = self._fd_to_key.get
for fd, event in fd_event_list:
key = fd_to_key_get(fd)
Expand Down
0