Robert Bradshaw wrote:
>> On Wed, Feb 25, 2009 at 5:34 AM, Stefan Behnel wrote:
>>> PyObject* values[N] = {0,0,...,0}; // all 0!
>>> values[3] = non_NULL_default_value3;
>>> values[8] = non_NULL_default_value8;
>
> I would assume the compiler optimizes the statement to be as good as
> before?
That was my intuition, too. And my disassembler tells me that it avoids
setting anything more than once.
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev