httplib incredibly slow :-(

Chris Withers chris at simplistix.co.uk
Mon Sep 7 13:59:52 CEST 2009


Dieter Maurer wrote:
> Chris Withers <chris at simplistix.co.uk> 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:

http://bugs.python.org/issue2576

Found and fixed :-)

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk



More information about the Python-list mailing list