Youtube - Lightning Talk Using This Correctly it's [[unlikely]] at Best - Staffan Tjernstrom - CppCon 2022

Lightning Talk: Using This Correctly it's unlikely at Best - Staffan Tjernstrom - CppCon 2022

https://www.youtube.com/watch?v=_1A1eSriCV4

Transcrição

Pasted image 20240105020354.png
New in C++20 « Attributes likely and unlikely — Optimizing hints to the compiler ~ Generalization of gcc/clang __builtin_expect « aka linux kernel likely / unlikely macros — Even experts get it wrong a lot of the time - Steven Rostedt on When Likely Is Likely to Be Unlikely (vmware.com) — On superscalar CPUs with speculative execution, trying to outsmart the silicon is basically pointless = MEASURE, change, MEASURE + Test at Scale

Pasted image 20240105020514.png

Pasted image 20240105020705.png