2.3-2.5 what improved?

Bruno Desthuilliers bruno.desthuilliers at websiteburo.com
Wed Jan 17 11:41:59 EST 2007


billie a écrit :
> robert wrote
> 
>> Robin Becker wrote:
>>> A large cgi based web Python-2.3 application needs to be speed improved.
>>> experiments show the following under reasonable testing (these are 2
>>> second reportlab pdf productions)
>>>
>>> 1) 2.3 --> 2.5 improvement small 1-2%
>>> 2) cgi --> fcgi improvement medium 10-12%
>>>
>>> I sort of remember claims being made about 2.5 being 10% faster than
>>> 2.4/2.3 etc etc. Can anyone say where the speedups were? Presumably we
>>> have a lot of old cruft that could be improved in some way eg moving
>>> loops into comprehensions, using iterator methods etc. Are those sort of
>>> things what we should look at?
>> Python 2.5 became quite fat. For bare CGI the Python load/init
>> time eats all improvements. Smaller scripts even loose lot of speed.
>> I still like Python 2.3 for many other reasons for many
>> applications - especially for CGI's, on Windows, for deployable
>> apps, GUI's etc. because the fat coming with Python 2.4 is not
>> balanced by necessary goods - mostly just fancy things.
> 
> What do you mean? Fat of libraries or fat itself?
> I tought that 2.5 was faster than precedent versions! :-\
> 

It is. But it takes a bit more time to launch the interpreter. Which is 
barely noticiable in most cases, but can be start to be a problem with CGI.



More information about the Python-list mailing list