[New-bugs-announce] [issue46212] Avoid temporary `varargs` tuple creation in argument passing

colorfulappl report at bugs.python.org
Fri Dec 31 05:05:47 EST 2021


New submission from colorfulappl <colorfulappl at qq.com>:

When "Augument Clinic generated code" are parsing arguments, the args are packed to a tuple before passing to callee. This may be unnecessary.

Pass a raw pointer which points to on-stack varargs, and a varargssize integer to indicate how many varargs are passed, can save the time of tuple creation/destruction and value copy.

----------
components: Argument Clinic
messages: 409412
nosy: colorfulappl, erlendaasland, larry
priority: normal
severity: normal
status: open
title: Avoid temporary `varargs` tuple creation in argument passing
type: performance
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46212>
_______________________________________


More information about the New-bugs-announce mailing list