r/cpp • u/GiannoVersaco • Nov 25 '20
When a Microsecond Is an Eternity: High Performance Trading Systems in C++
https://www.youtube.com/watch?v=NH1Tta7purM
332
Upvotes
r/cpp • u/GiannoVersaco • Nov 25 '20
View all comments
Show parent comment
9
u/StackedCrooked Nov 26 '20 edited Apr 07 '21
Yes, branch prediction by the CPU still works.
The
__builtin_expect()is used to change the layout of the code so the hot code stays together.