~/lightning

On "simple" Optimizations

Lightningat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
slides:none on file

Uses Compiler Explorer to show clang and GCC generating huge code for four push_backs then collapsing to a simple sum only after adding v.reserve(4) or running extra LLVM passes. Claims and shows that the issue is the inliner and optimizer behavior not the idea of examples — LLVM inlines three but not four functions so a call remains unless capacity is reserved or extra optimization iterations are forced, and the live demo proves the surprising numeric cutoff.

AI-written summary · about

~/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.