~/talk

Practical constexpr

Talkat Meeting C++ 2017 · 2017-11-09..11-11· [rust]
slides:none on file

Applies constexpr across a 25k line ChaiScript codebase and reports concrete effects: many indiscriminate changes show 0% change while a few targeted adjustments produce 10% startup improvement and about 8% less compile memory and later reorganizing statics yields up to 20% faster startup; uses GCC 7.2 and std::array/std::lcm, documents fragile stdlib support (string_view, algorithms, std::exchange) and shows pitfalls like magic static costs, inadvertent copies, and compilers that “try too hard” evaluating constexpr at compile time.

AI-written summary · about

  1. 0:00Intro
  2. 1:09Is this a valid constexpr function?
  3. 5:33Literal Types
  4. 7:17constexpr intro
  5. 9:05constexpr context
  6. 10:52constexpr Tries Harder
  7. 16:34Basic Application of constexpr How much change in ChaiScript start-up performance did I see?
  8. 22:40The Mission
  9. 38:15Modifying for constexpr
  10. 46:05constexpr Helps You Find Design Flaws
  11. 50:40constexpr in C++17 - Lambdas
  12. 53:13Testing constexpr functions
  13. 54:10Enabling constexpr
  14. 56:15Jason Turner
~/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.