[Python-Dev] urllib performance issue on FreeBSD 4.x
Tue, 26 Nov 2002 07:37:57 +1000 (est)
On Sun, 24 Nov 2002, Fredrik Lundh wrote:
> > > Without this patch, d/l a 4MB file from localhost gets a bit over 110kB/s,
> > > with the patch gets 4-5.5MB/s on the same system
> > >
> > > - why is the socket.fp being set to unbuffered?
> > I can't make time for a full essay on the issue, but I believe that it
> > must be unbuffered because some applications want to read until the
> > end of the headers and then pass the file descriptor to a subprocess
> > or to code that uses the socket directly.
> sounds like it would be a good idea to provide a subclass (or option)
> for applications that don't need that feature.
Thanks for the info. I'll add preparing a patch for this to my
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: email@example.com | Snail: PO Box 370
firstname.lastname@example.org | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia