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

Sean Reifschneider jafo-python-dev at tummy.com
Fri May 26 00:42:15 CEST 2006


Brett provided the following direction: >Right, I meant change how it (BaseException) is written. Right now >it uses PyMethodDef for magic methods and just uses PyTypeNew() >as a constructor. I was wondering if, for some reason, it would be >faster if you used a PyTypeType definition for BaseException and >used the proper C struct to associate the methods with the class.

Just a status update. Richard has implemented enough of this that I've been able to run some performance tests, and this changes it this pybench test from being 57% slower than 2.4.3 to being 32% faster. Go Richard. It's looking pretty good so far.

Now we just have to keep it from exploding.

Thanks, Sean

Denial is more than just a river in Egypt, you know? Sean Reifschneider, Member of Technical Staff <jafo at tummy.com> tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability Back off man. I'm a scientist. http://HackingSociety.org/



More information about the Python-Dev mailing list