[Python-Dev] how to debug httplib slowness

Antoine Pitrou solipsis at pitrou.net
Wed Aug 12 13:37:12 CEST 2009

Chris Withers <chris <at> simplistix.co.uk> writes:
> However, I'm kinda stumped on where to start with debugging the 
> difference. I've tried upping the buffer size as suggested in the issue, 
> but it's had no effect...

Then perhaps it's not the same bug.
Please take a look at CPU utilization during the download. If Python takes close
to 100% CPU, it might be due to the lack of buffering or any other suboptimal
situation in the implementation. If Python takes close to 0%, then it's just
waiting on data to arrive from the network...

More information about the Python-Dev mailing list