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
For use cases where readers are added and removed frequently (hard to change the design without breaking changes) this adds up quickly.
Linked PRs
Pitch
The current code path for adding and removing asyncio readers and writers always has to do a
tryexcept KeyErrorto add a new reader/writercpython/Lib/asyncio/selector_events.py
Line 316 in b3648f0
For use cases where readers are added and removed frequently (hard to change the design without breaking changes) this adds up quickly.
Linked PRs