On 3. 10. 2010 Stéfan van der Walt wrote:
> a) Using pure Python decorators, compiler directives and a .pxd.
> b) Using "cdef" declarations inside a .pyx file.
> 
> I have the feeling these should generate equivalent results, but
> approach (a) is a bit slower.  Do you have an explanation?
> 
> I attach the source files, and the annotated versions are here:
> 
> http://mentat.za.net/refer/integrate_hints.html
> http://mentat.za.net/refer/integrate_cy.html

Hey, it seems that cython.float maps to C float in integrate_hints. So you are 
effectively comparing double vs. single precision.

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

Reply via email to