On Jul 29, 2008, at 10:12 PM, [EMAIL PROTECTED] wrote:

I think the difference between 5.8.x and 5.10.x is that in 5.10 the bottom layer of Perl's I/O layering is unixio rather than stdio, i.e. read/write and friends rather than fread/fwrite and friends.

And here's your workaround, Jörg.  Change your open statement from

open (OUTPUT, ">$test" ) || die "Fehler open";

to

open OUTPUT, '>unix:', $test or die "Fehler open";

That will get you the same behavior on 5.8.x that 5.10.x does by default, i.e., it will use Unix I/O instead of standard I/O, see

$ perldoc perlio

for details. This will let you dodge the performance bug in our fwrite() implementation and get you roughly the same speed when writing zeros as when writing anything else.

________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to