Message342579
Once PEP 590 is implemented, it makes sense to focus on using the new "vectorcall" calling convention, which is essentially what is currently FastCallKeywords. To simplify things, it would also be good to use FastCallDict in as few places as possible and actually get rid of that completely.
One place where using FastCallKeywords instead of FastCallDict is bad for performance is when using METH_VARARGS|METH_KEYWORDS: the dict would be converted to a tuple and then back to a dict. For builtin_function_or_method instances, there is already special code to deal with METH_VARARGS. But for method_descriptor, there is no such code and this issue fixes that.
More precisely, a specialized function is used for implementing calls of method_descriptor with the METH_VARARGS|METH_KEYWORDS signature. Other calls use FastCallKeywords instead, in which case there is no performance loss. |
|
Date |
User |
Action |
Args |
2019-05-15 15:46:02 | jdemeyer | set | recipients:
+ jdemeyer, petr.viktorin, Mark.Shannon |
2019-05-15 15:46:01 | jdemeyer | set | messageid: <1557935161.99.0.62795791689.issue36926@roundup.psfhosted.org> |
2019-05-15 15:46:01 | jdemeyer | link | issue36926 messages |
2019-05-15 15:46:01 | jdemeyer | create | |
|