On Mon, May 25, 2020 at 7:58 PM <redradist@gmail.com> wrote:
Edwin Zimmerman wrote: Only if your workload is CPU bound. Python optimizes IO bound workload performance by releasing the GIL while doing IO. Green threads generally do not offer this option.
Real threads is not needed in Python: 1) Real threads do not work parallel
They do when they do any sort of blocking operation.
2) Real threads only consume resources of OS 3) Real threads have also as trade off context switching between threads (small but ...)
Not enough to be a concern.
I think considering this trade offs we should switch Real Thread -> Green Thread internally or provide alternative functionality ... I think asyncio already provide functionality of GreenThread ... Okay maybe we should leave Real Threads as it is ... I need to think about it ...
Yes, leave real threads as is, thanks. They're pretty important actually. If you don't want to use threads, that's fine, but don't change the threading module to not be threads. Not really a lot of point breaking backward compatibility for, uhh, zero gain. ChrisA