New submission from Jeroen Demeyer <j.deme...@ugent.be>:
_PyStack_UnpackDict() is used to convert from the FastCallDict calling convention to FastCallKeywords. It currently needs two allocations: one for the tuple of keyword names and one for the array of arguments (positional and keyword). This can be optimized by using a single allocation, storing everything in a single tuple. That tuple can then be artificially truncated to the required size when done. ---------- components: Library (Lib) messages: 342339 nosy: Mark.Shannon, jdemeyer, petr.viktorin, scoder priority: normal severity: normal status: open title: Implement _PyStack_UnpackDict() with a single allocation type: performance versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36904> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com