Why is < faster than <=?(stackoverflow.com)
stackoverflow.com
Why is < faster than <=?
http://stackoverflow.com/questions/12135518/why-is-faster-than
4 comments
What was that law that said that all titles that ended with a question mark can be answered "No"?
Betteridge's Law of Headlines - http://en.wikipedia.org/wiki/Betteridges_Law_of_Headlines
[deleted]
It may or may not be.. Its dependent on CPU, and Compiler.
The top voted answer explains that the premise of the question and therefore the title of the submission is wrong.
So you missed the answer from ridiculous_fish there: on Power PC CPU's doing floating point comparisons the speeds are actually different. That's a perfect counterexample for your claim that "the premise is wrong."
Detailed explanation about reasons was given by Lukas.
Detailed explanation about reasons was given by Lukas.
The Detailed Explanation given by Lucas concludes:
So, on some machines, using a "less than" comparison
might save one machine instruction. This was relevant in
the era of sub-megahertz processor speed and 1:1
cpu-to-memory speed ratios, but is almost totally
irrelevant today.[deleted]