Re:Why is processing a sorted array faster than an unsorted ...
by jwilliams on Wednesday October 10, 2012 @04:33PM
(#4638055)
Think we completely agree.
It's pretty much demonstrated by the update to the piece -- certain compliers & compiler flags did produce the right optimization, whereas the original author did not.
But it's entirely another question whether you, as a mere mortal human, are able to do a better job at producing assembly code in practice, for non-trivial programs, than a compiler.