Speeding up Preprocessor
summary
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
chapters (8)
- 0:00Intro
- 0:13The problem
- 1:13Simple solution
- 1:51Prototype
- 2:17Boost Libraries
- 3:02Strengths
- 3:30Weaknesses
- 3:43Question
related talks
58mOptimization Tips - Mo' Hustle Mo' Problems
01h 05mFast and small C++ - When efficiency matters
42mPractical Optimizations
01h 00mMoving Faster: Everyday efficiency in modern C++
23mFast by default: algorithmic performance optimization in practice
01h 02mMaking the Most Out of Your Compiler
58mC++ Performance and Optimisation
01h 03mFast and Small C++ - When Efficiency Matters
