~/talk

Speeding up Preprocessor

Talkat CppCon 2017 · 2017-09-24..09-29· [web-performance]
links:none on file
slides:none on file

Prototype caches final expansions and tracks macro dependencies so a macro’s final replacement is computed once at first expansion and invalidated correctly later. That prototype yields about 20% speed up on Boost headers. Redesign implements six Boost preprocessor macros as built‑ins inside a custom preprocessor, reproducing the ~20% gain, simplifying code by localizing each macro implementation, producing better errors (can check first arg of boost_pp_if), but applicability is limited to Boost‑heavy code unless compilers adopt it.

AI-written summary · about

  1. 0:00Intro
  2. 0:13The problem
  3. 1:13Simple solution
  4. 1:51Prototype
  5. 2:17Boost Libraries
  6. 3:02Strengths
  7. 3:30Weaknesses
  8. 3:43Question
~/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.