[Python-ideas] Faster PyArg_ParseTupleAndKeywords kwargs
dw+python-ideas at hmmz.org
dw+python-ideas at hmmz.org
Fri May 23 23:41:35 CEST 2014
On Fri, May 23, 2014 at 08:07:17PM +0000, dw+python-ideas at hmmz.org wrote:
> Perhaps the most off-the-wall approach would be to completely preserve
> the existing interface, by using a dollop of assembly to fetch the
> return address, and use that to maintain some internal hash table.
>
> That's incredibly nasty, but as a systemic speedup it might be worth it?
Final (obvious in hindsight) suggestion: mix 'fmt' and 'keywords'
argument pointers together for use as a hash key into a table within
getargs.c, no nasty asm or interface changes necessary.
David
More information about the Python-ideas
mailing list