Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Threads From Hell #2: How To Parse A Very Huge File

by BrowserUk (Patriarch)
on May 23, 2015 at 21:38 UTC ( [id://1127542]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [21:22:49.82] C:\test>wc -l big.csv
    167772159 big.csv
    
    [21:24:39.11] C:\test>dir big.csv
    07/02/2015  13:27    10,737,418,241 big.csv
    
  2. or download this
    $s = 'kar'; $s x= 32749011;;
    print length $s;;
    ...
    
    $t = time; $s =~ m[karl] and ++$n for 1 .. 100; printf "%.9f\n", ( tim
    +e() - $t ) / 100;;
    0.192800162
    
  3. or download this
    [21:54:00.65] S:\>wc -l big.csv
    167772159 big.csv
    
    [21:55:19.75] S:\>
    

Log In?
Username:
Password:

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

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

    No recent polls found