[Python-Dev] how to debug httplib slowness

Antoine Pitrou solipsis at pitrou.net
Fri Sep 4 21:15:18 CEST 2009


Guido van Rossum <guido <at> python.org> writes:
> 
> +1 on trying this. Constructing a 116MB string by concatenating 1KB
> buffers surely must take forever. (116MB divided by 85125 recv() calls
> give 1365 byte per chunk, which is awful.)

It certainly is quite small but perhaps the server tries to stay below the
detected MTU?
(not that there is necessarily any point in doing so for most HTTP content,
IMO... except perhaps when the client does some progressive decoding)




More information about the Python-Dev mailing list