Uri noted a couple days ago that Perl's stream I/O in <FH> calls is
terrible.  This matches somewhat with my own experience, and whenever
I need to parse a file I either slurp it (if I'm certain it's within
certain bounds) or do something like while {sysread(LARGE_BUFSIZE)}.

Is anyone here perlgutsy enough to say *why* <FH> is so slow?  Is it
just the split /(?=$/)/, or is there more going on there that I'm
missing?

If I bypass <FH>, am I gaining speed by not doing work I don't need to
do, or is it just one of the more atrocious legacy code paths?

-Conor

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to