~/talk

Boost Your Program’s Health by Adding Fibers to your Coroutine

Talkat CppCon 2017 · 2017-09-24..09-29
links:none on file
slides:none on file

Compares stackless Coroutine TS (co_yield/co_await) and stackful Boost.Coroutine2, then shows integration with Boost.Asio and the Boost.Fiber scheduler. Builds an echo client/server that reads an 8‑byte header then a payload (two I/O calls) and replaces thread-per-connection code with async+coroutines and with fibers. Reports fiber context switches roughly three orders of magnitude faster than threads (example: ~52 μs for thread switch vs much lower for fibers) and demos that both coroutine and fiber approaches work and scale.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Coroutines overview
  3. 14:42Generators with coroutines
  4. 22:55Asynchronous I/O with coroutines
  5. 33:18Threads vs fibers
  6. 44:12Boost Fiber library
  7. 54:05Q&A session
  8. 1:03:18Conclusion and summary
~/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.