4 ms·
There is also a drop-in replacement for asyncio called uvloop [0]. It claims to be faster than asyncio, gevent, node.js, etc. and comparable to golang. [0] htt
by wenc 9y ago
There is also a drop-in replacement for asyncio called uvloop [0]. It claims to be faster than asyncio, gevent, node.js, etc. and comparable to golang.
[0] https://magic.io/blog/uvloop-blazing-fast-python-networking/ https://magic.io/blog/uvloop-blazing-fast-python-networking/
- jwandborg 9y agoMore precisely, uvloop is an "asyncio.AbstractEventLoop" implementation using libuv. It can be used instead of the default asyncio.SelectorEventLoop[0] on Lunix(? not Windows at least: https://github.com/MagicStack/uvloop/issues/14 https://github.com/MagicStack/uvloop/issues/14). You will still, for better or worse, use the asyncio standard library when writing code running on uvloop. [0]: https://docs.python.org/3/library/asyncio-eventloops.html#available-event-loops https://docs.python.org/3/library/asyncio-eventloops.html#av...