~/talk

“Practical Performance Practices"

Talkat CppCon 2016 · 2016-09-18..09-23· [developer-experience]
slides:none on file

ChaiScript becomes roughly 100x faster over six years by simplifying idiomatic C++ rather than adding a VM or JIT, with concrete wins: caching parsed integers removes reparsing and gives ~10% improvement across the system; removing needless virtual destructors restores move operations and saves ~10%; prefer returning unique_ptr from factories to cut template instantiations, compile time and binary size; replace std::bind/std::function with lambdas (zero overhead) and avoid flushing with std::endl because it adds ~9x I/O cost; automated per-commit perf tests confirm gains.

AI-written summary · about

  1. 0:00Start
  2. 1:06Optimizing Compilers
  3. 3:43Which Is Better for the Normal Case Standard Vector or Standard List
  4. 4:14Why Why Is Vector Better than List
  5. 6:05Standard Array
  6. 9:12Code Efficiency
  7. 29:28Shared Pointer
  8. 38:29Returning Unique Pointer from Your Factory Functions
  9. 47:48Bonus Slide Avoid Non-Local Data
  10. 49:46Performance Graph
  11. 50:11Automated Performance Monitoring Setup
  12. 53:45Why this Works
  13. 59:31Almost 100 X Improvement in Time
~/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.