INADA Naoki added the comment: > And would be nice to extend the optimization to C functions.
I tried it but skipping creating PyCFunction seems impossible for now. My current idea is adding new `tp_fastcall` slot which has same signature to _PyFunction_FastCallDict or _PyCFunction_FastCallDict. If MethodDescrObject implement it, we can skip temporary PyCFunction object and argument tuple. But I think it should be separated issue. Patch is large enough already. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26110> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com