Kevin Jacobs <[EMAIL PROTECTED]> wrote:
> On Dec 6, 2007 1:35 AM, Neil Toronto <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     So I've applied Armin's patch to 2.6 (it was nearly clean) and am
>     playing with it. cls.name <http://cls.name> lookups are 15-20%
>     faster than mine, and
>     inst.name <http://inst.name> lookups are 5-10% faster. His is also
>     winning on hasattr calls
>     (succeeding and failing) on classes, but mine is winning on hasattr
>     calls on instances. I want to poke at it a bit to find out why.
> 
> 
> I hope folks have noticed that I've done some significant cleanup and 
> forward porting some months ago at
> 
> http://bugs.python.org/issue1700288

Excellent. I tried this as well. This is guarding cache access with 
PyString_CheckExact (as it should) rather than asserting PyString_Check, 
plus a few other cleanups. It runs nearly as fast as Armin's, and still 
faster than mine and much faster than without.

Neil

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to