[issue29507] Use FASTCALL in call_method() to avoid temporary tuple
STINNER Victor
report at bugs.python.org
Thu Feb 9 11:27:28 EST 2017
STINNER Victor added the comment:
method_fastcall4.patch: Based on method_fastcall3.patch, I just added call_unbound() and call_unbound_noarg() helper functions to factorize code. I also modified mro_invoke() to be able to remove lookup_method().
I confirm the speedup with attached bench.py:
Median +- std dev: [ref] 121 ns +- 5 ns -> [patch] 82.8 ns +- 1.0 ns: 1.46x faster (-31%)
----------
Added file: http://bugs.python.org/file46611/method_fastcall4.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29507>
_______________________________________
More information about the Python-bugs-list
mailing list