~/talk

Using Tokio for CPU-Bound Tasks (Works Really Well)

Talkat TokioConf 2026 · 2026-04-20..04-22· [rust, developer-experience]
slides:none on file

Claim: Tokio as runtime for CPU-bound tasks actually works for analytics engines because DataFusion models operators as async streams and processes record batches in-task, enabling core-local execution and vectorized work per task. Implementation uses a separate Tokio runtime for CPU work, integrates with async IO, and benchmarks approach parity with DuckDB on core scaling. Gotchas include mixing IO and CPU on same runtime throttles network and the need to yield based on the runtime task budget, fixed upstream.

AI-written summary · about

  1. 0:00Tokio intro and CPU tasks
  2. 3:20Why Tokio suits CPU work
  3. 5:51Tokio misconceptions
  4. 8:19Tokio task overhead
  5. 10:03Data flow graphs and streams
  6. 12:50Keeping data on same core
  7. 14:13Multiple runtimes for CPU and IO
  8. 16:19Real-world performance
  9. 18:02Debugging thread contention
  10. 20:27Task cancellation in Tokio
  11. 21:52Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.