
30 Oct
2010
30 Oct
'10
5:25 p.m.
"Daniel Walker" <daniel.j.walker@gmail.com> wrote in message news:AANLkTi=XyK9WhaKJO8K8y8AAj70WawJU1TqFHgQd35Tk@mail.gmail.com...
Sorry, I must have missed your examples.
e.g. http://lists.boost.org/Archives/boost/2010/01/160908.php
Here's a simple benchmark that we could use: ...snip....
As already explained, such test consisting of simple straightforward for loop are no good as a capable compiler is able to hoist the if check outside of the loop (if the overhead of the 'if' is the only thing we are considering)... -- "What Huxley teaches is that in the age of advanced technology, spiritual devastation is more likely to come from an enemy with a smiling face than from one whose countenance exudes suspicion and hate." Neil Postman