Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Remove double bracket and singe quotes

by mr_mischief (Monsignor)
on May 02, 2016 at 21:49 UTC ( #1162044=note: print w/replies, xml ) Need Help??


in reply to Re^2: Remove double bracket and singe quotes
in thread Remove double bracket and singe quotes

That's a good start, but I wouldn't really count on such a limited benchmark too heavily. Take a look at Re: Faster way to do this? for an example of how trustworthy a quick benchmark with one data set really isn't.

The first question should be whether 8 seconds is too long in the first place. If someone's only running this once, you've already spent far more time saving 6 seconds than it's worth.

  • Comment on Re^3: Remove double bracket and singe quotes

Replies are listed 'Best First'.
Re^4: Remove double bracket and singe quotes
by bart (Canon) on May 03, 2016 at 11:38 UTC
    The first question should be whether 8 seconds is too long in the first place.
    That is indeed the question, because those 8 seconds are for testdata of 724MB, that is: a processing speed of about 100MB/second. Since the text would appear to be marked up text from a wiki or similar, I doubt the strings would ever be longer than 30kBytes. And then, the task is done in a fraction of a millisecond.
Re^4: Remove double bracket and singe quotes
by marioroy (Priest) on May 02, 2016 at 22:30 UTC

    Nice article. Thank you for sharing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2018-08-18 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (185 votes). Check out past polls.

    Notices?