[Israel.pm] content of big file on windows

Offer Kaye oferk at oren.co.il
Tue Mar 16 22:31:54 PST 2004

> Thanks for the benchmark, Ofer!

Welcome, but it's "Offer", not "Ofer".

> Uh, just to be sure, could you repeat it with the two tests in reverse
> order, just to make sure caching wasn't the cause of the difference?

Done- no difference.

> And: if speed really is an issue, it's silly to sysread through the
> whole file. seek() say, 4k from the end and count \ns from there. The
> code will not be simple if you want to allow for long lines, but I bet
> it'd still be faster on any reasonable test data.
> --
> Gaal Yahas <gaal at forum2.org>
> http://gaal.livejournal.com/

Depending how large the input file is, which Pinkhas didn't say in his
original email.
But you are probably right, for any input larger than a few MB.

Offer Kaye

More information about the Perl mailing list