Questions tagged [uvloop]

uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is implemented in Cython and uses libuv under the hood.

uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is released under the MIT license.

uvloop and asyncio, combined with the power of async/await in Python 3.5, makes it easier than ever to write high-performance networking code in Python.

uvloop makes asyncio fast. In fact, it is at least 2x faster than nodejs, gevent, as well as any other Python asynchronous framework. The performance of uvloop-based asyncio is close to that of Go programs.

You can read more about uvloop in this blog post.

32 questions
0
votes
1 answer

How to get the Body from a request, using httptools?

How to get request body with content-type: Application/json using python httptools? I`m using it with uvloop. The request class looks like this: class HttpRequest: __slots__ = ('_protocol', '_url', '_headers', '_version') def __init__(self,…
Lem
  • 151
  • 6
  • 16
-1
votes
1 answer

python speedup a simple function

I try to find a simple way to "speed up" simple functions for a big script so I googled for it and found 3 ways to do that. but it seems the time they need is always the same. so what I am doing wrong testing them? file1: from concurrent.futures…
1 2
3