zruntime 0.2.2 is out: a performance release of the simple, single-threaded asyn...
Zeeshan Ali Khan :rust: πΊπ¦ @zeenix@toot.cat
zruntime 0.2.2 is out: a performance release of the simple, single-threaded async runtime for Rust. With 128 clients keeping a server busy on Linux, each round trip now takes 1.5 epoll_ctl calls rather than 3.5, and a fifth fewer system calls in all.
Where it comes from:
β’ On epoll and kqueue, zruntime now watches sockets edge-triggered: a wait reports a socket as it turns ready, not again while it stays ready.
β’ A socket stays watched while the task it woke is queued, rather than being taken off the poller and put back for each message.
β’ `block_on` polls its future only once it has been woken, so a main future waiting for Ctrl-C no longer reads the signal pipe at every turn of a busy runtime.
β’ `Runtime::timeout` starts its clock at the first poll that leaves its future waiting, so a future that is ready at once never reads the clock.
Release notes: https://github.com/z-galaxy/zruntime/releases/tag/zruntime-0.2.2
Crate: https://crates.io/crates/zruntime