I was wondering about what you said: whether the speed-up does rely on providing an outright string into the regex
in reply to Re: A mod2 Machine.
in thread A mod2 Machine.
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.