Stefan Behnel added the comment:

Serhiy, I suggest you look at the code that Cython generates for its functions. 
It has been extensively profiled and optimised (years ago), so generating the 
same code for the argument clinic should yield the same performance.

And while I don't have exact numbers at hand, avoiding the tuple packing for 
the call by passing it into a METH_O function can make a substantial 
difference. It also kills support for keyword arguments, though.

----------
nosy: +scoder

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to