STINNER Victor added the comment: > If the underlying function doesn't support fast call, and both args and > pto->args are not empty, patched partial_call() makes one unneeded copyings.
The simple workaround is to revert changes using FASTCALL in partial_call(). But for best performances, it seems like we need two code paths depending if the function supports fastcall or not. I will try to write a patch for that. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29735> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com