[Python-Dev] 2.5a2 try/except slow-down: Convert to type?

Walter Dörwald walter at livinglogic.de
Fri May 26 11:59:05 CEST 2006


Neal Norwitz wrote:

> This is probably orthogonal to the problem, however, you may want to
> look into trying to speed up Python/errors.c.  This link will probably
> not work due to sessions, but click on the latest run for python and
> Python/errors.c
> 
> http://coverage.livinglogic.de/coverage/web/selectEntry.do?template=2850&entryToSelect=547460
> 
> If you look at the coverage numbers, many functions are called
> millions of times.  In many cases traceback is passed as NULL in other
> functions within errors.c.  If you could get rid of that check and
> possibly others and do some fast pathing in there, it might speed up
> exceptions some (or normal cases where exceptions are raised
> internally, then discarded).

If that helps, here is the list of the 1000 most executed lines of the
last run of the test suite:

http://styx.livinglogic.de/~walter/python/topcoverage.html

Servus,
   Walter



More information about the Python-Dev mailing list