Techniques for making your program run faster
Joined conditions – cheap and expensive conditions
Optimize chains of if/else commands
Use lookup tables instead of switch
Move the most common case out of switch
Rewrite joined conditions
Suggest to the compiler which branch has a higher probability
Use branchless algorithms
Use conditional loads instead of branches
Go branchless with arithmetic
Reorganize your code in order to avoid branching
Remove branches with templates
A few other tricks to avoid branches
https://johnnysswlab.com/how-branches-influence-the-performance-of-your-code-and-what-can-you-do-about-it/
--
FROM 59.60.25.*