Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: A mod2 Machine.

by code-ninja (Scribe)
on Jul 13, 2013 at 12:34 UTC ( [id://1044146]=note: print w/replies, xml ) Need Help??


in reply to Re: A mod2 Machine.
in thread A mod2 Machine.

should be faster

Why art thou speculating? use Benchmark;

I benchmarked the bitwise operation with my method and even then my method wins... for 1e6 iterations.

Rate machine bitwise machine 819199/s -- -43% bitwise 1448690/s 77% --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1044146]
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: (5)
As of 2024-04-18 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found