ISAI student has asked for the wisdom of the Perl Monks concerning the following question:
Hello all. We are seeing cases of slowdown when printing out files (our fileserver could be better).
I was wondering if there is any real difference between printing line by line vs. flushing out 1 big array, or multiline string. Right now, the scipts print out line by line. You can assume that the system's memory can handle it. Or in code:
vs.:... print FH $f; ... print FH $b; ...
Thanks.... $printout .= $f; ... $printout .= $b; ... print FH $printout
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: printout of large files. loop vs. flush at once
by BrowserUk (Patriarch) on Apr 18, 2013 at 17:19 UTC | |
Re: printout of large files. loop vs. flush at once
by davido (Cardinal) on Apr 18, 2013 at 17:17 UTC | |
Re: printout of large files. loop vs. flush at once
by mbethke (Hermit) on Apr 18, 2013 at 17:06 UTC | |
Re: printout of large files. loop vs. flush at once
by RichardK (Parson) on Apr 18, 2013 at 17:20 UTC |
Back to
Seekers of Perl Wisdom