|
|
|
|
|
by kccqzy
333 days ago
|
|
That's a GIL problem not an async problem. Even if you choose to ditch asyncio and use threads, you still need to care about the GIL. And when I use asyncio I don't worry about CPU-bound tasks like encoding or decoding JSON; I worry about some library doing I/O synchronously regardless of whether such library releases the GIL or not. |
|
Trying to combine mental models of asyncio and threading is a model for pure insanity.