[Python-ideas] An alternate approach to async IO

Trent Nelson trent at snakebite.org
Wed Nov 28 00:41:29 CET 2012


On Tue, Nov 27, 2012 at 03:33:55PM -0800, Sturla Molden wrote:
> 
> Den 27. nov. 2012 kl. 23:36 skrev Trent Nelson <trent at snakebite.org>:
> 
> > 
> >    Right, but with things like interlocked lists, you can make that
> >    CPython|background_IO synchronization barrier much more performant
> >    than relying on GIL acquisition.
> 
> You always need the GIL to call back to Python.  You don't need it for anything else. 

    Right, you *currently* need the GIL to call back to Python.

    I'm proposing an alternate approach that avoids the GIL.  On
    Windows, it would be via interlocked lists.

        Trent.



More information about the Python-ideas mailing list