[MERGE] A hack to make urllib not call recv(1) lots and lots.

Andrew Bennetts andrew at canonical.com
Mon Mar 17 20:16:34 GMT 2008


Andrew Bennetts wrote:
> Andrew Bennetts wrote:
> [...]
> > I've used your recipe, and I've just repeated my experiments from last night.
> > I also followed Robert's suggestion, and bumped the buffering up to 64kB
> > (updated patch attached for completeness).
> 
> Actually attached this time.

Ok, I've sent this off to PQM (John reviewed the final form in person).  John
gave me a suggestion about how to do this slightly more cleanly, and it seems to
work ok on Windows.  Seeing as we're right at the start of the 1.4 cycle, now is
the best time to land it, so I have.

Thanks everyone for giving so much feedback for such a short patch :)

-Andrew.




More information about the bazaar mailing list