This is more of a design question. I am involved with a project that requires us to solve a bunch of first order differential equations. I know the python has modules to this and we have been using those functions.
However, we need the integrator to be fast, so we want to use adaptive step sizes and test some other routines not included in the scipy packages. To that end, I had a f2py question since it seems to make sense to write the ODE solver in fortran or C, and wrap it using f2py. Where does the 'slow down' occur in interfacing between fortran, for example, and python? Is it in transferring memory back and forth? I am wondering what I need to consider at the front end. Of course, I could write this directly in python (for starters), but I have heard that looping in python is very slow.
Anyway, just looking for general advice and things to consider.
Thank you.