First blog post on writing your own async executors in Rust. Here's how to implement block_on() in a few lines of safe code.https://stjepang.github.io/2020/01/25/build-your-own-block-on.html …
Why is this faster than whatever the futures crate does? Has some trade-off been made?
-
-
I'm not sure why the futures crate is slower, but it's most likely for a silly reason like a missing #[inline] or something of that sort.
-
Just finished reading the executor blog post as well. Very nicely written!
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.