[Python-ideas] An alternate approach to async IO
sturla at molden.no
Wed Nov 28 01:56:19 CET 2012
Den 28. nov. 2012 kl. 01:44 skrev Guido van Rossum <guido at python.org>:
> But why would you need 15 cores to shuffle the bytes around when you
> have only 1 to run the Python code that responds to those bytes?
I don't think he needs all 15 cores for that, assuming the Python processing is the more expensive.
But it would avoid having the GIL change hands on each asynch i/o event.
It would also keep the thread that runs the interpreter in cache, if it never goes to sleep. That way objects associated with the interpreter would not be swapped in and out, but kept in cache.
More information about the Python-ideas