[issue29464] Specialize FASTCALL for functions with positional-only parameters
Serhiy Storchaka
report at bugs.python.org
Mon Feb 6 10:22:46 EST 2017
New submission from Serhiy Storchaka:
Proposed patch renames METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and makes bare METH_FASTCALL be used for functions with positional-only parameters. This eliminates small cost that these functions pay for handling empty keywords: calling _PyStack_UnpackDict() and _PyArg_NoStackKeywords(), passing kwnames. This also can slightly reduce stack consumption.
----------
components: Interpreter Core
files: fastcall-no-keywords.patch
keywords: patch
messages: 287143
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Specialize FASTCALL for functions with positional-only parameters
type: performance
versions: Python 3.7
Added file: http://bugs.python.org/file46544/fastcall-no-keywords.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29464>
_______________________________________
More information about the Python-bugs-list
mailing list