Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: perl ST sort performance issue for large file? (copying)

by BrowserUk (Patriarch)
on Mar 30, 2012 at 17:19 UTC ( [id://962655]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\test>dir junk.dat
    30/03/2012  17:39        53,777,008 junk.dat
    ...
    Some random junk 835571 146942 some more random junk
    Some random junk 783477 720062 some more random junk
    Some random junk 197540 926361 some more random junk
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    substr( $_, 0, 8, '') for @a;
    
    printf "Took %.6f seconds; check memory? ", time()- $start; <STDIN>;
    
  3. or download this
    C:\test>t-GRT junk.dat
    1000001 records
    Took 6.704649 seconds; check memory? 274.1MB
    
  4. or download this
    #! perl -slw
    use strict;
    ...
    ];
    
    printf "Took %.6f seconds; check memory? ", time()- $start; <STDIN>;
    
  5. or download this
    C:\test>t-TYE junk.dat
    1000001 records; check memory 143.8MB
    Took 228.533225 seconds; check memory? 649.0 MB
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://962655]
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: (4)
As of 2024-04-16 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found