[Python-Dev] very bad network performance (original) (raw)
Terry Reedy tjreedy at udel.edu
Mon Apr 14 19:25:27 CEST 2008
- Previous message: [Python-Dev] very bad network performance
- Next message: [Python-Dev] very bad network performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Ralf Schmitt" <schmir at gmail.com> wrote in message news:932f8baf0804140912u54adc7d5md7261541857f21bd at mail.gmail.com... | Hi all, || I'm using mercurial with the release25-maint branch. I noticed that checking | out a local repository now takes more than | 5 minutes (it should be around 30s). || I've tracked it down to this change: | http://hgpy.de/py/release25-maint/rev/e9446c6ab3cd | this is svn revision 61009. Here is the diff inline: || --- a/Lib/socket.py Fri Mar 23 14:27:29 2007 +0100 | +++ b/Lib/socket.py Sat Feb 23 20:30:59 2008 +0100 | @@ -305,7 +305,7 @@ | self.rbuf = "" | while True: | left = size - buflen | - recvsize = max(self.rbufsize, left) | + recvsize = min(self.rbufsize, left) | data = self.sock.recv(recvsize) | if not data: | break |||| self.rbufsize if 1, and so the code reads one byte at a time. this is | clearly wrong, I'm posting it to the mailing list, as I don't want | this issue to get lost in the bugtracker.
It is at least as likely to get lost here. There is a mailing list for new tracker items that many devs subscribe to.
- Previous message: [Python-Dev] very bad network performance
- Next message: [Python-Dev] very bad network performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]