News for hackers. Stuff that matters.
Re:Async Python is not faster by the_mitsuhiko on Friday June 12, 2020 @07:34AM (#23498205)
The database is mostly just idle IO. You send a query and then you wait for results. That’s something sync python is decent at because when you wait for that IO the GIL is released. The situation is different if there is a lot of activity on the epoll/kqueue etc. (connects, data ready etc.).
Re:Async Python is not faster by orf on Friday June 12, 2020 @07:58AM (#23498334)
Apologies - I completely misread your initial comment. Yeah that's correct.

Despite this I think it's quite rare to hit this limit, at least in the orchestration-style use cases I use asyncio for. With those I value making independent progress on a number of async tasks rather than potentially being blocked waiting for a worker thread to become available.