Closed bdraco closed 1 year ago
I don't have an androidtv device though so I can't test this. I'm fixing this as a result of investigating a sluggish Home Assistant instance from the provided profile data above.
Thanks! I made the same change in adb-shell: https://github.com/JeffLIrion/adb_shell/pull/222
asyncio.wait_for
creates another tasks which leads to some race conditions in cancelation and a performance hitcpython 3.12 will change the underlying implementation of
asyncio.wait_for
to useasyncio.wait
but that is still a long way off for many people:https://github.com/python/cpython/pull/98518
seen on profile courtesy of @Madelena