#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

#1239 in Asynchronous

Download history 5049/week @ 2024-09-23 6695/week @ 2024-09-30 4228/week @ 2024-10-07 7414/week @ 2024-10-14 6123/week @ 2024-10-21 8450/week @ 2024-10-28 12472/week @ 2024-11-04 8447/week @ 2024-11-11 14978/week @ 2024-11-18 15059/week @ 2024-11-25 11520/week @ 2024-12-02 12144/week @ 2024-12-09 12418/week @ 2024-12-16 5224/week @ 2024-12-23 5498/week @ 2024-12-30 9790/week @ 2025-01-06

33,329 downloads per month
Used in 26 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