Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

> folding all contiguous LOAD_CONSTs (within some sort of limit ofc) into a 
> single tuple load and then adding an UNPACK_SEQUENCE

I already experimented with this in issue33325. It does not worth an effort.

For optimizing calls with constant arguments, it looks more interesting. Do you 
have any statistic about what percentage of calls is with constant arguments, 
what is the average number of constant arguments, what are microbenchmark 
results in debug mode for the average number of constant arguments? Please test 
for trivial Python function with variable and fixed number of parameters.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44501>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to