[Python-Dev] Special-casing "O"

Armin Rigo arigo@ulb.ac.be
Thu, 14 Jun 2001 10:58:48 +0200 (MET DST)

Hello everybody,

For comparison purposes, I implemented the idea of optimizing
PyArg_ParseTuple calls by modifying the C code itself. Here is the result:


I did not upload this as a patch at SourceForge for several reasons. The
most fundamental is that it raises bootstrapping issues: how can we
compile the Python interpreter if we first have to run a Python script on
the source files ? Fixing this would make the Makefiles significantly more
complex. The other reason is that the METH_O solution is probably still
faster, as it often completely avoids to build the 1-tuple of arguments. 
More serious performance tests might be needed, however. 

A bientot,