Live data from Hacker News

Why is < faster than <=?

stackoverflow.com

11–12 of 12 posts

Re: Why is &#60; faster than &#60;=?

#11
post #7
post #2

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.

[deleted]

Re: Why is &#60; faster than &#60;=?

#12
post #7
post #2

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.

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.
Post reply on HN