Gael Varoquaux wrote: > I tried tweak my Cython code for performance by manually inlining a small > function, and ended up with a less performant code.
Perhaps the inlining has caused the number of local variables to exceed the number of registers available, or something like that. The only way to find out for sure would be to examine the assembly language being produced by the C compiler. Something to keep in mind is that C function calls are not so expensive in relative terms as Python function calls are. So whereas in Python eliminating a user-defined function call is almost always a win, it's not necessarily so in C. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
