Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Pipes vs. temporary files

by Codon (Friar)
on Jul 25, 2007 at 18:33 UTC ( #628761=note: print w/replies, xml ) Need Help??


in reply to Pipes vs. temporary files

This is somewhat off-the-cuff, but I would expect the pipe methodology to be faster in terms of wall clock time. Running the first script and redirecting to a temp file requires that process to run to completion, which I would imagine could take some time since you say it produces a large amount of data. Using a pipe allows you to process the data in your second script as it is produced by your first script.

Ivan Heffner
Sr. Software Engineer
WhitePages.com, Inc.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://628761]
help
Chatterbox?
[Corion]: virtualsue: Aaah, yes, we do use these a lot
[1nickt]: Discipulus Yes, I think it is maybe easier to be a good monk in "real" life when you are young and idealistic or old and weary ... nost so much in middle age.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-12-13 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (368 votes). Check out past polls.

    Notices?