Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Loops loosing Performance

by ambrus (Abbot)
on Jun 10, 2005 at 10:16 UTC ( [id://465487]=note: print w/replies, xml ) Need Help??


in reply to Re: Loops loosing Performance
in thread Loops loosing Performance

Are you a hacker? Don't you know the C precedence table by heart? Then why do you need those crazy parentheses around the multiplication?

Isn't this enough:

sub test1 { (($_[0] & $_[1]) * 2113665 & 17895697) % 15; }

Anyway, I like your method. Nice idea to search in HAKMEM. As you can see below, I've given a less concise solution.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://465487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2024-04-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found