3 ms·
Branchless Programming: Why “If” is Sloowww, and what we can do about it [video]
- cellularmitosis 6y agoCreel also has a lot of great videos for those interested in getting started with assembly.
- pbsds 6y agoAll of these cases should really be done by the compiler on O3.
- mratsim 6y agoMandatory don't trust the folklore: https://hal.inria.fr/hal-01100647/document https://hal.inria.fr/hal-01100647/document
- Sohcahtoa82 6y agoThe highest-voted question on Stack Overflow is related to branch predictions and branchless programming: https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array https://stackoverflow.com/questions/11227809/why-is-processi...
- pabo 6y agoThis is a great post, thanks for sharing!