~/talk

Cache Warming: Warm Up The Code

Talkat CppCon 2018 · 2018-09-23..09-28· [web-performance]
links:none on file
slides:none on file

Claim: pre-executing rarely used hot paths reduces latency but naive warming pollutes caches and skews branch predictors. Demo uses synthetic calls at ~10 Hz and shows added if-statements cause branch misprediction and slow real executions. Fix is to avoid conditionals by turning scalars into a two-counter array indexed by a warming flag so both code and data get warmed without changing real state. If branching cannot be removed, use compiler likely/unlikely hints as a fallback.

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.