- Published on
Making Your Code Faster by Taming Branches
- Authors
- Name
- Hao Chen
- @haoel
Content
https://www.infoq.com/articles/making-code-faster-taming-branches/
Link Preview
- https://www.infoq.com/articles/making-code-faster-taming-branches/
- Making Your Code Faster by Taming Branches
- Most software code contains conditional branches. In code, they appear in if-then-else clauses, loops, and switch-case constructs. For better performance, modern processors predict the branch and execute the following instructions speculatively. It is a powerful optimization.