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

RE: RE: RE (tilly) 2 (blame): File reading efficiency and other surly remarks

by lhoward (Vicar)
on Aug 26, 2000 at 17:41 UTC ( [id://29807]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Benchmark: running BufferedFileHandle, chunk, linebyline, each for at 
    +least 3 CP
    U seconds...
    ...
         chunk:  4 wallclock secs ( 2.89 usr +  0.32 sys =  3.21 CPU) @  <
    +b>4.36/s</b> (n=14)
    linebyline:  4 wallclock secs ( 3.25 usr +  0.06 sys =  3.31 CPU) @  <
    +b>2.72/s</b> (n=9)
    
  2. or download this
    #!/usr/bin/perl
    
    ...
      while(<$fh>) { }
      close(FILE);
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found