[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

STINNER Victor report at bugs.python.org
Thu Feb 2 05:04:40 EST 2017


STINNER Victor added the comment:

I tried to benchmark b''.decode(encoding='ascii'): CALL_METHOD is not used for this call, but CALL_FUNCTION_KW :-/ So the call is not affected by your patch.

I also ran a quick benchmark on loadmethod-methoddescr.patch:

b''.decode(): 71.1 ns +- 0.5 ns -> 65.4 ns +- 0.2 ns: 1.09x faster (-8%)
b''.decode('utf8'): 92.8 ns +- 0.4 ns -> 85.5 ns +- 0.3 ns: 1.09x faster (-8%)

I confirm the speedup.

----------

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


More information about the Python-bugs-list mailing list