in reply to Re: Anyone use "xor" in conditionals?
in thread Anyone use "xor" in conditionals?
Ah! But if it is out and out speeed we are after then I might have offered :)
sub buk2 { $_[0] % 4 ? 0 : $_[0] % 100 ? 1 : not $_[0] % 400; }
Rate browseruk isleap abigail buk2
browseruk 82.8/s -- -40% -54% -67%
isleap 138/s 67% -- -24% -45%
abigail 180/s 118% 31% -- -28%
buk2 251/s 203% 82% 39% --
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller