A new Rusty web framework by asyncio contributor Nikolay Kim @fafhrd91https://twitter.com/newsycombinator/status/1001931719719751683 …
I do t think it is possible to make tokio event loop as fast as uvloop. Thread to thread communication is easy
-
-
Yeah, I don't think there's anything too special about uvloop, it's just a matter of spending time to profile and micro-optimize things.
-
Threads dispatch in Rust should be easy and fast, but as soon as it touches Python it becomes slower. Maybe the solution is to use a Rust<->Python queue and a self-pipe trick to wake-up Python event loop efficiently (bypassing call_soon_threadsafe and Futures overhead).
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.