Both previous answers have value. Even better than Benchmarking would be profiling. I use Devel::NYTProf, but I vaguely recall there's a hotter, potentially better tool.
You should read the documentation in perlvar about $|. That and select should help with understanding hot pipes.
I would be very surprised if setting an output channel to autoflush improves your performance. The whole point of output buffering is to improve performance, which means you would be undermining an existing optimization.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Make a file handle hot
by kennethk
in thread Make a file handle hot
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |