-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
performancePerformance or resource usagePerformance or resource usagetopic-asynciotype-featureA feature request or enhancementA feature request or enhancement
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 where readers are added and removed frequently (hard to change the design without breaking changes) this adds up quickly.

Linked PRs
Metadata
Metadata
Assignees
Labels
performancePerformance or resource usagePerformance or resource usagetopic-asynciotype-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done