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

gh-112989: asyncio: Reduce overhead to connect sockets with SelectorEventLoop #112991

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Dec 12, 2023

_ensure_fd_no_transport had a KeyError in the success path. It can be replaced with a simple dict.get

The performance profile is similar to previous discussion #106527 (comment)

…ectorEventLoop

_ensure_fd_no_transport had a KeyError in the success path
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@gvanrossum gvanrossum merged commit 7e2d93f into python:main Dec 13, 2023
33 checks passed
@bdraco bdraco deleted the fd_no_transport_key_error_success branch December 13, 2023 00:37
@bdraco
Copy link
Contributor Author

bdraco commented Dec 13, 2023

Thanks!

@hugovk
Copy link
Member

hugovk commented Dec 16, 2023

Is a backport needed or shall we close the issue? #112989

@bdraco
Copy link
Contributor Author

bdraco commented Dec 16, 2023

Closed the issue, sorry I forgot to do that.

No backport needed unless someone has a high volume of socket connection and requests it. For Home Assistant we ship our own python w/patches so its not urgent for us.

bdraco added a commit to home-assistant/docker-base that referenced this pull request Dec 16, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…ectorEventLoop (python#112991)

_ensure_fd_no_transport had a KeyError in the success path
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…ectorEventLoop (python#112991)

_ensure_fd_no_transport had a KeyError in the success path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants