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?? |
I was wondering about what you said: whether the speed-up does rely on providing an outright string into the regex
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. NoteMy explanation is open for abuse... :D
In Section
Meditations
|
|