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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29507>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to