Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: A mod2 Machine.

by code-ninja (Scribe)
on Jul 04, 2013 at 17:31 UTC ( [id://1042497]=note: print w/replies, xml ) Need Help??


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

I was wondering about what you said: whether the speed-up does rely on providing an outright string into the regex

my $n = 112358; ...

I guess, it does rely on it. Not much but look at it from the processor's perspective. It is an assignment operation hence there will be an extra "mov" instruction moving data from the accumulator to say the DX register, right? Whereas providing an outright string will take data directly from the accumulator.

Note

My explanation is open for abuse... :D

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found