Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: How to optimize a regex on a large file read line by line ?

by John FENDER (Acolyte)
on Apr 16, 2016 at 18:03 UTC ( [id://1160661]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to optimize a regex on a large file read line by line ?
in thread How to optimize a regex on a large file read line by line ?

So maybe an issue related to my Windows/Distro, i will try to search why. Thanks.
  • Comment on Re^5: How to optimize a regex on a large file read line by line ?

Replies are listed 'Best First'.
Re^6: How to optimize a regex on a large file read line by line ?
by polettix (Vicar) on Apr 16, 2016 at 20:53 UTC
    You're welcome. I forgot to add that my hard drive is SSD, although this would NOT account for 11 minutes difference.

    Update added missing negation, thanks ww

    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Io ho capito... ma tu che hai detto?

      It make a big difference !!!

      Regarding the other performance i get from other language, i was expected something between 50 and 100 s. My hard drive is a 2.5 laptop disk with 5200 tpm. The ultra optimized grep.exe give me a very good result of 10s, it's the best time i can get.

      But before i was going to check huge volumes, perl was fast. For the 195 mb file, i got 0,61s for grep, 2,25 for java/C#, 3,36 for php, 7 for C++ and 2,47 for perl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-06-21 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.