Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Remove double bracket and singe quotes

by mr_mischief (Monsignor)
on May 02, 2016 at 21:49 UTC ( [id://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 (Prior) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1162044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-18 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found