New submission from STINNER Victor:

Serhiy Storshaka wrote a kind of cache for PyArg_ParseTupleAndKeywords(): 
_PyArg_Parser structure used by _PyArg_ParseTupleAndKeywordsFast(). It makes 
argument parser much faster.

Would it be possible to modify it to be able to use it in _PyArg_ParseStack(). 
(Would it be faster?)

See also issue #29419 "Argument Clinic: inline PyArg_UnpackTuple and 
PyArg_ParseStack(AndKeyword)?" for a different kind of optimization.

----------
components: Interpreter Core
messages: 287043
nosy: haypo, inada.naoki, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Use _PyArg_Parser for _PyArg_ParseStack(): support positional only 
arguments
type: performance
versions: Python 3.7

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

Reply via email to