[issue18181] PEP447: Add type.__getdescriptor__

Ronald Oussoren report at bugs.python.org
Sat Jul 25 11:58:56 CEST 2015


Ronald Oussoren added the comment:

The attached micro benchmark indicates that method_cache in typeobject.c isn't used when using my patch. I'll have too look into that.

Other than that benchmarks results look OK (but: not using the method_cache is unacceptable as this most definitely changes performance).

What is kind of scary, but is to be expected I guess, is that a __getdescriptor__ method in Python is awfully slow.  I have to look into why this is slow, as the slowdown for using Python is significantly worse than I expected.

----------
Added file: http://bugs.python.org/file40013/pep447-micro-bench.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18181>
_______________________________________


More information about the Python-bugs-list mailing list