~/talk

Not Leaving Performance On The Jump Table

Talkat CppCon 2020 · 2020-09-14..09-18· [c-and-cpp]
slides:none on file

Shows that std::function incurs about 79% overhead versus raw function pointers in real benchmarks (function pointer ~46 μs, std::function ~81–86 μs) and that folly::Function cuts that by ~14% while the Zoo implementations cut another ~24% (about 35% over libc++). Uses compiler explorer and microbenchmarks with varying call entropy, builds a portable type‑erasure trampoline with a 16‑byte local buffer and reordered arguments to avoid null checks, shrinks object code, and runs in production on mobile at scale.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:58Performance on the jump table
  3. 16:32Runtime polymorphism challenges
  4. 29:48Problems with std::function
  5. 40:43Benchmarking and performance gains
  6. 57:51Q&A and closing remarks
~/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.