~/talk

Automatically Process Your Operations in Bulk With Coroutines

Talkat CppCon 2021 · on Monday, 2021-10-25· at 12:30· online· [react]
slides:none on file

Claim: let per-item code stay simple while C++20 coroutines transparently gather arguments and dispatch bulk calls. Implementation builds a minimal task/awaitable, an executor and a batcher + executor + task cooperating to suspend, collect vectors, run the bulk function and resume callers. A full-from-scratch prototype runs and benchmarks: manual batching is ~50× faster than no-batch; coroutine batching matches or slightly beats manual when vectors are reserved; naive coroutine overhead is ~200 ns/item but optimized variants close the gap.

AI-written summary · about

  1. 0:00Intro
  2. 1:31Explanation
  3. 15:42Curtain Handle
  4. 19:57Implementing the Idea
  5. 25:39Task struct
  6. 32:21Executor
  7. 33:32Execution
  8. 35:05Instantiate Executor
  9. 36:25Batcher
  10. 40:12Batcher Implementation
  11. 49:43Asynchronous Transfer Protein
  12. 52:43Visual Representation
  13. 56:03Open Question
~/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.