Skip to main content.
home | support | download

Back to List Archive

Perl I/O buffering and the prog method

From: Thomas R. Bruce <trb2(at)>
Date: Fri Feb 04 2005 - 14:12:23 GMT

I seem to be in a posting mood this week.

We run any number of custom spidering scripts that we use to feed 
swish-e, via the prog method.  They're in perl.  Recently, I've started 
messing around with turning buffering off on STDOUT for these scripts 
(via $|++) and my general impression, without formal benchmarks, is that 
they're running a good bit faster.  They're running on a Linux box with 
one of the 2.4.x kernels.

Any other experience that would tend to confirm or refute this?


Thomas R. Bruce (
Director, Legal Information Institute
Cornell Law School

Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
Received on Fri Feb 4 06:12:23 2005