[Cython] Temps again
Stefan Behnel
stefan_ml at behnel.de
Wed Dec 10 07:32:55 CET 2008
Hi,
Dag Sverre Seljebotn wrote:
> Stefan Behnel wrote:
>> I wonder if this can also be useful for common subexpression elimination -
>> and if it makes sense to try such an optimisation in Cython...
>
> I think almost all Python expressions can have potential side-effects
> which makes such optimisation impossible -- and with non-Python
> subexpressions it can at least technically be considered the job of the
> C compiler. Or?
Right, that was my feeling, too. Another thing is stuff that the C compiler
can't optimise due to INCREF/DECREF use, but I can't think of an example
here, either.
Stefan
More information about the Cython-dev
mailing list