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
Update Lib/selectors.py
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
  • Loading branch information
eendebakpt and corona10 authored Jul 19, 2023
commit f60f88715c1d4cd299145e64781a616c516be85e
2 changes: 1 addition & 1 deletion Lib/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def select(self, timeout=None):
for fd, event in fd_event_list:
key = fd_to_key_get(fd)
if key:
events = ( (event & ~self._EVENT_READ and EVENT_WRITE)
events = ((event & ~self._EVENT_READ and EVENT_WRITE)
| (event & ~self._EVENT_WRITE and EVENT_READ))
ready.append((key, events & key.events))
return ready
Expand Down
0