[issue46532] Improve effeciency of PRECALL/CALL instructions

2022-01-26 Thread Mark Shannon
Mark Shannon added the comment: Possibly consider replacing the specializations for `str(arg)` and `tuple(arg)` with a more general bytecode that can be used for other objects as well. -- ___ Python tracker ___

[issue46532] Improve effeciency of PRECALL/CALL instructions

2022-01-26 Thread Mark Shannon
New submission from Mark Shannon : 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 PRECA