Chris Colbert wrote:

> over 6x improvement just by avoid a few measly pow statements...
> anyone know why i'm stuck in slowpow?

Using pow to calculate x**2 is always going to be slower
than x*x, no matter how smart the pow function is. Function
calls have some overhead, even in C.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to