On Sat, 2007-08-11 at 11:26 -0400, Guy Hulbert wrote:
> On Sat, 2007-08-11 at 09:29 -0400, Matt Sergeant wrote:
> > On 11-Aug-07, at 9:19 AM, Guy Hulbert wrote:
> > 
> > > On Sat, 2007-08-11 at 08:29 +0200, Hanno Hecker wrote:
> > >> +    while (my $size = $fh->read(my $line, 4096)) {
> > >
<snip>
> > In previous tests I've done with perl you're better off just trying  
> > to read about a megabyte at a time. Sounds strange, but try it.
> 
<snip>
> (rather than reading line-by-line) unless it's bigger than 10MB or so.
> I wrote a class to do this so I can forget about it.

Of course this is not appropriate if you have many processes doing the
same thing ... and aren't we reading from a pipe (or something) here ?

> 
> > 
> > Matt.
> > 

-- 
--gh


Reply via email to