Hi,

Robert Bradshaw wrote:
> On Aug 23, 2008, at 9:00 AM, Stefan Behnel wrote:
>> The only case where we are still a bit slower than Python is when you
>> pass (almost) all arguments as keyword arguments. [...] However, as the
>> absolute numbers compared to Python show, this may not be worth the
>> effort.
> 
> Maybe. It wouldn't be a huge savings nor a common case, and there is the
> issue of bloating the header of the function, so I think what you have is
> great.

I agree even more now that I did a little more tweaking for kw unpacking,
especially for the case where **kwargs and/or *args are used. It's another bit
faster in total (mainly by generating more optimistic code) and we use less
helper functions (which are really only called when necessary). There's also a
pretty good split of the error handling between the generic helpers and the
generated in-place code now.

Two nice side-effects: we generate more readable code, and the cases that
raise keyword errors are also faster now. :)

Have fun,

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to