[New-bugs-announce] [issue46532] Improve effeciency of PRECALL/CALL instructions
Mark Shannon
report at bugs.python.org
Wed Jan 26 04:44:42 EST 2022
New submission from Mark Shannon <mark at hotpy.org>:
The PRECALL/CALL bytecode pair for calls is new (still in review at time of writing) and is not as efficient as it could be.
Some possible improvements are:
Transfer refcount of func when making a frame.
NULL call_shape.kwnames after use instead of in PRECALL, as many specialized instructions already assert that it is NULL.
Specialize the PRECALL instructions. Either for simple cases like `type(arg)` so we can skip the CALL, or for complex cases like `PythonClass(args)` where PRECALL can create object, and set up the frame so that `CALL` calls the __init__ function.
----------
assignee: Mark.Shannon
messages: 411721
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Improve effeciency of PRECALL/CALL instructions
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46532>
_______________________________________
More information about the New-bugs-announce
mailing list