[Python-Dev] PATCH: attribute lookup caching for 2.6

Kevin Jacobs <jacobs@bioinformed.com> bioinformed at gmail.com
Thu Dec 6 13:08:47 CET 2007


On Dec 6, 2007 1:35 AM, Neil Toronto <ntoronto at cs.byu.edu> wrote:

> So I've applied Armin's patch to 2.6 (it was nearly clean) and am
> playing with it. cls.name lookups are 15-20% faster than mine, and
> 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

-Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20071206/bd63dcc4/attachment.htm 


More information about the Python-Dev mailing list