in reply to Re: Speed Improvement (Updated!)
in thread Speed Improvement

I think it needs a small change to match the \d, but yours is still fastest:
# vv $message =~ s[\{\\d(\d+)\}][ substr int( rand 1e9 ), 0, $1 ]ge; Rate mca_func toolic_func buk_func mca_func 41051/s -- -36% -56% toolic_func 64558/s 57% -- -30% buk_func 92678/s 126% 44% --

Replies are listed 'Best First'.
Re^3: Speed Improvement
by BrowserUk (Patriarch) on Dec 01, 2014 at 21:01 UTC
    it needs a small change to match the \d,

    Ah yes. That does lessen the impact somewhat doesn't it ;)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.