[issue26802] Avoid copy in call_function_var when no extra stack args are passed

Joe Jevnik report at bugs.python.org
Tue Apr 19 17:52:30 EDT 2016


Joe Jevnik added the comment:

CALL_FUNCTION doesn't use extended arg; I don't see what we get by adding some opcode to convert the sequence into a tuple. We also don't want to box up the stack arguments into a tuple because when we do a CALL_FUNCTION to a python function we just copy the stack[-n:] elements into the locals of the next frame. Emitting a build_tuple here would be an unneeded allocation.

----------

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


More information about the Python-bugs-list mailing list