[Python-Dev] Idea for a fast calling convention

Michael Hudson mwh at python.net
Mon Mar 1 07:15:46 EST 2004


Bob Ippolito <bob at redivi.com> writes:

> On Mar 1, 2004, at 5:52 AM, Michael Hudson wrote:
>
>> Well, yes.  C sucks seriously for things like this, though.  It's
>> frankly embarassing that *every* time, say, ''.split() is called, some
>> silly string is being parsed.  Unclear what to do about this (excpet
>> PyPy, I guess).
>
> Surely there's other reasonable options.  For example, we could start
> using something like Pyrex that could be modified to generate whatever
> gnarly C code needs to happen for optimal runtime performance with
> minimal input ugliness :)

Hmm, yes, I hadn't thought of pyrex.

It also hadn't occured to me that pyrex might be desirable because the
result might be more efficient, but I guess that's not so surprising.

Cheers,
mwh

-- 
  Guido (like us!) is a bit schizophrenic here: he wants to be a
  benevolent dictator, but also wants to treat people like
  grownups. This probably worked better before Python got a large
  American audience <0.9 wink>.             -- Tim Peters, 10 Feb 2000



More information about the Python-Dev mailing list