#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

#1253 in Asynchronous

Download history 930/week @ 2024-08-20 1007/week @ 2024-08-27 880/week @ 2024-09-03 760/week @ 2024-09-10 2507/week @ 2024-09-17 5854/week @ 2024-09-24 6435/week @ 2024-10-01 5058/week @ 2024-10-08 6483/week @ 2024-10-15 6589/week @ 2024-10-22 10593/week @ 2024-10-29 11370/week @ 2024-11-05 8768/week @ 2024-11-12 14171/week @ 2024-11-19 15515/week @ 2024-11-26 10326/week @ 2024-12-03

51,163 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
~54K SLoC