[Cython] About IndexNode and unicode[index]

Zaur Shibzukhov szport at gmail.com
Fri Mar 1 09:07:42 CET 2013


>> Then it can simplify writing utility code in order to support
>> different optimization flags in other cases too.
>
> Usually, yes. Look at the dict iteration code, for example, which makes
> pretty heavy use of it.
>
> This may not work in all cases, because the C compiler can decide to *not*
> inline a function, for example, or may not be capable of cutting down the
> code sufficiently in some specific cases.
>
> I agree in general, but I wouldn't say that it's worth changing existing
> (and working) code.
>
Thus the strategy of specialization of code to handle special cases,
while maintaining the existing code, which works well in general, is
the preferred?


More information about the cython-devel mailing list