Hi all,

I got bitten tonight by the following behaviour:

x**4

translates to

  __pyx_r = (pow(__pyx_v_x, 4.0);

which, in my case, is roughly 10x slower than x*x*x*x.

Maybe a neat feature for the new type inferencer would be to
automatically expand the power operator for integer powers below a
certain threshold?

Regards
Stéfan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to