2 ms·
> OS threads are orders of magnitude lighter than any Python coroutine implementation. But python threads, which have extra weight on top of an cross-platform
by dragonwriter 6y ago
> OS threads are orders of magnitude lighter than any Python coroutine implementation.
But python threads, which have extra weight on top of an cross-platform abstraction layer on top of the underlying OS threads, are not lighter than python coroutines.
You aren't choosing between Python threads and unadorned OS threads when writing Python code.
- otabdeveloper4 6y agoYou're absolutely right. I'm pointing out that this is a Python problem, not a threads problem, a fact which people don't understand.
- dragonwriter 6y agoEveryone has been discussing relative performance of different techniques within Python; there is neither a basis to suggest from that that people don't understand that aspects of that are Python specific, nor a reason to think that that is even particularly relevant to the discussion.