[issue31336] Speed up _PyType_Lookup() for class creation

INADA Naoki report at bugs.python.org
Wed Sep 6 03:18:03 EDT 2017


INADA Naoki added the comment:

Confirmed:
$ ./python-patched -m perf timeit --compare-to `pwd`/python -- 'class C: pass'
python: ..................... 11.9 us +- 0.1 us
python-patched: ..................... 10.3 us +- 0.1 us

Mean +- std dev: [python] 11.9 us +- 0.1 us -> [python-patched] 10.3 us +- 0.1 us: 1.15x faster (-13%)

----------

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


More information about the Python-bugs-list mailing list