Closed machbio closed 8 years ago
The way I'm using uvloop currently is
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
at the beginning of my main.py, before the app is created. This is how http://growler.rocks is running (which is currently as single page site and any framework/accelerator is unnecessary).
Let me know if the other syntax works.
Thank you, looks like there is no need of worrying about uvloop integration
I recently came across Growler, it looks pretty good framework to move away from Flask that I am currently using.
But I have seen some improvements on the loop with https://github.com/MagicStack/uvloop - the benchmark seems to show it is better event loop as compared to Asyncio Event loop. so can I replace the Event loop from the current example to use Uvloop - just wanted to know if I am missing anything.
Asyncio Loop
Uvloop
I understand that #4 its been brought forward - but should it not be as straightforward as given above.