Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(tye)Re: cat vs. file handle speed?

by tye (Sage)
on Mar 30, 2001 at 22:16 UTC ( [id://68454]=note: print w/replies, xml ) Need Help??


in reply to Re: cat vs. file handle speed?
in thread cat vs. file handle speed?

Well, my analysis applies if cat uses "stdio.h" to read the file (which probably depends on the breed of cat that you have).

But that doesn't matter in this case because even if cat is faster than Perl, Perl would still have to read the output from cat. So X+Y is always bigger than just Y (since a process can't consume negative resources), whether X<Y or Y<X.

        - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

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

    No recent polls found