#pingora #async #non-blocking #networking

pingora-runtime

Multithreaded Tokio runtime with the option of disabling work stealing

5 releases (3 breaking)

0.4.0 Nov 1, 2024
0.3.0 Jul 12, 2024
0.2.0 May 10, 2024
0.1.1 Apr 18, 2024
0.1.0 Feb 27, 2024

#1265 in Asynchronous

Download history 970/week @ 2024-08-03 1077/week @ 2024-08-10 967/week @ 2024-08-17 1044/week @ 2024-08-24 1002/week @ 2024-08-31 725/week @ 2024-09-07 1409/week @ 2024-09-14 5662/week @ 2024-09-21 6313/week @ 2024-09-28 4506/week @ 2024-10-05 6544/week @ 2024-10-12 4845/week @ 2024-10-19 9254/week @ 2024-10-26 12911/week @ 2024-11-02 8298/week @ 2024-11-09 12422/week @ 2024-11-16

43,809 downloads per month
Used in 24 crates (3 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–8MB
~53K SLoC