[issue31336] Speed up _PyType_Lookup() for class creation
STINNER Victor
report at bugs.python.org
Mon Sep 11 11:26:42 EDT 2017
STINNER Victor added the comment:
I ran a microbenchmark on the current PR 3279 using:
./python -m perf timeit --inherit=PYTHONPATH 'class C: pass'
Result:
haypo at selma$ ./python -m perf compare_to ref.json patch.json
Mean +- std dev: [ref] 9.71 us +- 0.38 us -> [patch] 8.74 us +- 0.22 us: 1.11x faster (-10%)
I compiled Python using "./configure && make", no LTO nor PGO.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31336>
_______________________________________
More information about the Python-bugs-list
mailing list