~/lightning

Lightning Talk: Using This Correctly it's [[unlikely]] at Best

Lightningat CppCon 2022 · 2022-09-11..09-16· [testing]
links:none on file
slides:none on file

C++20 attributes likely and unlikely are concrete compiler hints that aim to bias code layout and inlining rather than magically speed hot paths. The claim is that marking cold branches can move code into colder pages and reduce footprint, but microbenchmarks mislead and superscalar speculation defeats naive expectations. Example: marking a helper as unlikely causes GCC to move the inline out but clang keeps it, so effectiveness depends on placement, compiler and at-scale measurement.

AI-written summary · about

  1. 0:00Intro
  2. 0:21Likely and unlikely
  3. 1:20What likely and unlikely actually solves
  4. 2:02Likely
  5. 3:48More Details
  6. 4:08Quote
~/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.