in reply to Re^2: Redirect data and Filehandle manipulation (STDIN x Disk IO)
in thread Redirect data and Filehandle manipulation (STDIN x Disk IO)
To be honest, I would still use a temp file. And then, because this is perl, you could change it from an IO::File to an IO::Scalar later and compare if you're really saving any clock time. I'm betting it's not going to be significant on most modern hardware and OS. HD speeds continue to improve, as do the caching algorithms of the OS.
This smells of premature optimisation to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Redirect data and Filehandle manipulation (STDIN x Disk IO)
by mda2 (Hermit) on Jul 01, 2005 at 19:38 UTC | |
|
Re^4: Redirect data and Filehandle manipulation (STDIN x Disk IO)
by mda2 (Hermit) on Jul 01, 2005 at 22:44 UTC |