Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time integration performance improvement #11

Open
wgurecky opened this issue Mar 21, 2018 · 1 comment
Open

time integration performance improvement #11

wgurecky opened this issue Mar 21, 2018 · 1 comment

Comments

@wgurecky
Copy link
Owner

Description

The scipy.integrate.ode module is currently used to step the system of ODEs forward in time. The functions which compute the time derivative of each solution variable are written in pure python/numpy. Can we improve the performance of the ODE integration with little effort?

  • Consider supplying an analytic jacobian
  • Consider moving physics routines to cython or decorate with numba.jit
@wgurecky wgurecky added this to the v0.2 milestone Mar 21, 2018
@wgurecky wgurecky changed the title time integration performance imporvement time integration performance improvement Mar 21, 2018
@wgurecky
Copy link
Owner Author

Example numba jit decorator usage can be seen in commit: 5bb664f

The case for numba: http://matthewrocklin.com/blog/work/2018/01/30/the-case-for-numba
It appears since numba migrated from LLVM to LLVMlite it is easier for users to install numba as a dependency. Rather than rewrite the physics routines in cython/C/C++ numba.jit might win out in a time investment vs. speedup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant