[Python-Dev] Special-casing "O"
Tim Peters
tim.one@home.com
Sat, 26 May 2001 04:14:06 -0400
I don't want to see us duplicate the guts of PyArg_ParseTuple() inside
do_call_special(). METH_O is a cool idea, METH_l is marginal, and the new
code is already slower for METH_O than it needs to be in order to support
the *possibility* of METH_l too (stacks and loops and switch stmts and an
extra layer of do_call_special function call "just in case").
Do METH_O, convert every "O" function to use it, declare victory, and enjoy
the weekend <wink>.
1%-of-the-work-for-80%-of-the-gain-and-an-overall-decrease-in-code-
size-ly y'rs - tim