[issue1700288] Armin's method cache optimization updated for Python 2.6

Neil Toronto report at bugs.python.org
Fri Dec 7 04:53:54 CET 2007


Neil Toronto added the comment:

I've attached the microbenchmarks I was using for my own version of
attribute caching. For list, tuple, dict, and a deep hierarchy, it tests
accessing type attributes (cls.__class__), class attributes
(cls.__init__), class attributes via instance (inst.__class__), and
instance attributes (inst.__init__), using LOAD_ATTR and hasattr. It
also tests hasattr with missing attributes.

----------
nosy: +ntoronto
Added file: http://bugs.python.org/file8887/fastattr_test.py

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1700288>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fastattr_test.py
Type: text/x-python
Size: 10073 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071207/43854894/attachment-0001.py 


More information about the Python-bugs-list mailing list