<< Chapter < Page | Chapter >> Page > |
People sometimes take a week to make a decision, so we can’t fault a computer if it takes a few tens of nanoseconds. However, if an if-statement appears in some heavily traveled section of the code, you might get tired of the delay. There are two basic approaches to reducing the impact of branches:
In [link] we show you some easy ways to reorganize conditionals so they execute more quickly.
Notification Switch
Would you like to follow the 'High performance computing' conversation and receive update notifications?