httplib incredibly slow :-(

Chris Withers chris at
Mon Sep 7 13:59:52 CEST 2009

Dieter Maurer wrote:
> Chris Withers <chris at> writes on Thu, 13 Aug 2009 08:20:37 +0100:
>> ...
>> I've already established that the file downloads in seconds with
>> [something else], so I'd like to understand why python isn't doing the
>> same and fix the problem...
> A profile might help to understand what the time is used for.
> As almost all operations are not done in Python itself ("httplib" is really
> a very tiny wrapper above a socket), a C level profile may be necessary
> to understand the behaviour.

Actually, the problem *was* in Python:

Found and fixed :-)


Simplistix - Content Management, Batch Processing & Python Consulting

More information about the Python-list mailing list