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 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
