Whatever difference there is will be lost in the noise. From the point of view of the programmer, an addition has the same cost as a division; you are a long, long away from the metal.
The only question worth answering is which one is more readable. Which captures the problem more clearly, equality or difference? What's the "can't happen" scenario?
• another intruder with the mooring in the heart of the Perl
In reply to Re: Which is faster ?
by grinder
in thread Which is faster ?
by thenetfreaker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |