icon
Published on

Making Your Code Faster by Taming Branches

Authors

Content

https://www.infoq.com/articles/making-code-faster-taming-branches/

  • 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.