News for hackers. Stuff that matters.
Re:Some thoughts on asynchronous Python API design in a post... by zzzeek on Monday November 07, 2016 @08:13AM (#12890734)
> And will probably be less efficient.

they're not. gevent (and threads) are way faster than explicit asyncio, as all of asyncio's keywords / yields each have their own overhead. Here's my benches (disclaimer: for the "yield from" version of asyncio). http://techspot.zzzeek.org/2015/02/15/asynchronous-python-an...

Re:Some thoughts on asynchronous Python API design in a post... by brettcannon on Monday November 07, 2016 @01:13PM (#12893353)
Is that still true? Some uvloop benchmarking has shown it to be equivalent to gevent when using streams: https://magic.io/blog/uvloop-blazing-fast-python-networking/ . Plus Python 3.6 has a bunch of optimizations for asyncio where all of these numbers are going to have to be re-evaluated.
Re:Some thoughts on asynchronous Python API design in a post... by zzzeek on Monday November 07, 2016 @01:46PM (#12893666)
not sure. I'm hoping the more native support for asyncio in 3.6 has improved matters. Certainly though, it's never going to be faster than gevent. Or threads for most tasks.