-
Notifications
You must be signed in to change notification settings - Fork 54
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
Improve speed of SSC InverseCompton #182
Comments
So after some profiling it turns out that the numerical part might not be the problem.
I'm investigating further. |
It only shows that strongly when using an SSC photonfield. Here's my test code btw:
|
Turns out there's a memoize decorator on that. Stupid me. |
Note to self: it seems like its the |
Thanks for looking into this, @mackaiver. SSC is intrinsically much more compute intensive that BB or monochromatic origins as I experimented with numba in the past, but found that since most of the computations in
You can disable memoization on a given model by setting For any speed improvement work, it might be worth also looking at the naima-benchmarks repo, where there are a set of airspeed velocity benchmarks that time a few of the naima models. |
I'm currently fitting SSC models. Its pretty slow though. You think it might be a good idea to try and speed up the radiative models with numba?
See here for a quick overview: https://numba.pydata.org/numba-doc/latest/user/5minguide.html
I can make some quick speed tests next week.
The text was updated successfully, but these errors were encountered: