[Cython] About IndexNode and unicode[index]

Zaur Shibzukhov szport at gmail.com
Fri Mar 1 07:54:56 CET 2013


>>>
>>> I think you could even pass in two flags, one for wraparound and one for
>>> boundscheck, and then just evaluate them appropriately in the existing "if"
>>> tests above. That should allow both features to be supported independently
>>> in a fast way.
>>>
>> Intresting, could C compilers in optimization mode to eliminate unused
>> evaluation path in nested if statements with constant conditional
>> expressions?
>
> They'd be worthless if they didn't do that. (Even Cython does it, BTW.)
>
Then it can simplify writing utility code in order to support
different optimization flags in other cases too.


More information about the cython-devel mailing list