Title: Reduce overhead to add/remove asyncio readers and writers · Issue #106527 · python/cpython · GitHub
Open Graph Title: Reduce overhead to add/remove asyncio readers and writers · Issue #106527 · python/cpython
X Title: Reduce overhead to add/remove asyncio readers and writers · Issue #106527 · python/cpython
Description: Pitch The current code path for adding and removing asyncio readers and writers always has to do a try except KeyError to add a new reader/writer cpython/Lib/asyncio/selector_events.py Line 316 in b3648f0 except KeyError: For use cases w...
Open Graph Description: Pitch The current code path for adding and removing asyncio readers and writers always has to do a try except KeyError to add a new reader/writer cpython/Lib/asyncio/selector_events.py Line 316 in ...
X Description: Pitch The current code path for adding and removing asyncio readers and writers always has to do a try except KeyError to add a new reader/writer cpython/Lib/asyncio/selector_events.py Line 316 in ...
Opengraph URL: https://github.com/python/cpython/issues/106527
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reduce overhead to add/remove asyncio readers and writers","articleBody":"# Pitch\r\n\r\nThe current code path for adding and removing asyncio readers and writers always has to do a `try` `except KeyError` to add a new reader/writer\r\n\r\nhttps://github.com/python/cpython/blob/b3648f036e502db7e7da951ec4eb1f205cb3d74e/Lib/asyncio/selector_events.py#L316\r\n\r\nFor use cases where readers are added and removed frequently (hard to change the design without breaking changes) this adds up quickly.\r\n\r\n\r\n\u003cimg width=\"1321\" alt=\"Screenshot 2023-07-07 at 8 22 45 AM\" src=\"https://github.com/python/cpython/assets/663432/c0583d58-e342-40f0-ac3c-77795610f84f\"\u003e\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-106528\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/bdraco","@type":"Person","name":"bdraco"},"datePublished":"2023-07-07T18:17:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/106527/cpython/issues/106527"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fac66d7d-0891-cde2-be5f-1f4dd4e3d83f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8540:194D77:EB7F18:14A48C9:696A26B6 |
| html-safe-nonce | b3b5e9b9ea1526545f11614f1e408be89466e557fa80ec089a219a298d32e27e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTQwOjE5NEQ3NzpFQjdGMTg6MTRBNDhDOTo2OTZBMjZCNiIsInZpc2l0b3JfaWQiOiIxNjE2NDIxNzg0MTE1NjE5NTExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0f66d7a5413b6a54e3625f6830f6787e0a92ff4e540a5e42888936c84e80fc08 |
| hovercard-subject-tag | issue:1794005216 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/106527/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e1ded993c150b4228af947cfc72a63ee2a7224e0e5c86f75eafb2689ad0485b/python/cpython/issues/106527 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e1ded993c150b4228af947cfc72a63ee2a7224e0e5c86f75eafb2689ad0485b/python/cpython/issues/106527 |
| og:image:alt | Pitch The current code path for adding and removing asyncio readers and writers always has to do a try except KeyError to add a new reader/writer cpython/Lib/asyncio/selector_events.py Line 316 in ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bdraco |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width