Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Perl's poor disk IO performanceby BrowserUk (Patriarch) |
on Apr 30, 2010 at 00:20 UTC ( [id://837666]=note: print w/replies, xml ) | Need Help?? |
That's interesting. As is often the case with Perl, things move (silently) on as new versions appear. I just re-ran a series of tests that I last performed shortly after IO layers were added. Back then, on my system ':raw' was exactly equivalent to using binmode. It no longer is, nor is either the fastest option. Using this:
You can see (and interpret) the results for yourself: <Reveal this spoiler or all in this thread>
On my system, I'll be using :perlio & binmode for fast binary access from now on. (Until it changes again:) Perhaps even more indicative of the lag in the documentation is this:
If :raw popped all layers that were incompatible with binary reading, then :crlf:raw should be as fast as :crlf + binmode. But it ain't! Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|