|
|
|
|
|
by willseth
2365 days ago
|
|
> But blocking IO isn't one of those situations, so you can just use threads. Threads and async are not mutually exclusive. If your system resources aren't heavily loaded, it doesn't matter, just choose the library you find most appropriate. But threads require more system overhead, and eventually adding more threads will reduce performance. So if it's critical to thoroughly maximize system resources, and your system cannot handle more threads, you need async (and threads). |
|
Absolutely false. OS threads are orders of magnitude lighter than any Python coroutine implementation.