~/talk

Life of an async fn

Talkat RustFest Barcelona 2019 · 2019-11-09..11-12· [rust]
slides:none on file

Compiler turns async fn into an impl Future state machine by desugaring into a looped poll that walks a MIR control‑flow graph, overlaps local storage like an enum‑style state slot, and avoids extra heap allocation. Real results: large nested futures once consumed half a megabyte on Fuchsia and, after overlap optimisations, some shrink by 80–90%. Watch for concrete pitfalls: holding context across await and embedding big temporaries.

AI-written summary · about

  1. 0:00Introduction
  2. 2:32Handle Requests
  3. 12:33Overlap
  4. 16:53Performance
  5. 20:16Big Expressions
  6. 23:37Should you use it
  7. 24:13C proposal
  8. 26:01Applications
  9. 27:09Contributing
~/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.