~/talk

Async Channels: Dissecting Low-Level Primitives and Comparing Implementations

TalkinRussianat RustCon 2024 · on Friday, 2024-12-06· [rust, concurrency]
links:none on file
slides:none on file

Compares async channel implementations in Rust (tokio, flume, async-channel) to explain why switching libraries increased throughput in a deduplicating filesystem. Examines low-level primitives used to implement channels—atomics, lock-free data structures, futex/thread::park, and Waker—shows benchmarks and code examples, and explains performance trade-offs to help choose the right library.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Async channels
  3. 3:41Channel types
  4. 5:04Channel performance
  5. 6:48Benchmark results
  6. 7:51Channel internals
  7. 10:04Single vs multi-thread
  8. 12:10MPMC queue details
  9. 15:18Unbounded queues
  10. 18:25Task notifications
  11. 21:12Storing task handles
  12. 22:36Tokio vs Channel vs Flume
  13. 25:06Switch to Channel
  14. 26:50Key takeaways
  15. 28:14Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.