#pingora #async #non-blocking #networking

pingora-runtime

Multithreaded Tokio runtime with the option of disabling work stealing

3 unstable releases

0.2.0 May 10, 2024
0.1.1 Apr 18, 2024
0.1.0 Feb 27, 2024

#1278 in Asynchronous

Download history 13/week @ 2024-02-21 895/week @ 2024-02-28 796/week @ 2024-03-06 638/week @ 2024-03-13 685/week @ 2024-03-20 520/week @ 2024-03-27 820/week @ 2024-04-03 544/week @ 2024-04-10 686/week @ 2024-04-17 755/week @ 2024-04-24 548/week @ 2024-05-01 712/week @ 2024-05-08 552/week @ 2024-05-15 582/week @ 2024-05-22 449/week @ 2024-05-29

2,384 downloads per month
Used in 15 crates (2 directly)

Apache-2.0

12KB
177 lines

Pingora tokio runtime.

Tokio runtime comes in two flavors: a single-threaded runtime and a multi-threaded one which provides work stealing. Benchmark shows that, compared to the single-threaded runtime, the multi-threaded one has some overhead due to its more sophisticated work steal scheduling.

This crate provides a third flavor: a multi-threaded runtime without work stealing. This flavor is as efficient as the single-threaded runtime while allows the async program to use multiple cores.

Dependencies

~2.3–3.5MB
~54K SLoC