Re:Why is < faster than <=?
by ta12121 on Monday August 27, 2012 @05:08PM
(#4440934)
The top voted answer explains that the premise of the question and therefore the title of the submission is wrong.
[ Parent
| on HN ]
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.
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.