-
Notifications
You must be signed in to change notification settings - Fork 42
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
tune performance #222
tune performance #222
Conversation
|
||
if False: | ||
r=timeit.timeit('__main__.test_grueneisen()', setup="import __main__", number=3) | ||
print("test_grueneisen", r) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timo, why do we skip this? And keep it in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used this for testing if my changes had a positive impact. I agree it is not great to have it in here as is. I will update it.
- jit some functions - add misc/performance.py with several checks This patch increases performance from: 4331518 function calls (4024502 primitive calls) in 6.741 seconds to 3574686 function calls (3263157 primitive calls) in 4.139 seconds
okay, updated. |
Looks good to me. |
return 1./6./nu_o_nu0_sq * (2.*f+1.) * ( a1_ii + a2_iikk*f ) | ||
|
||
@jit | ||
def _delta_pressure_fast1(V_0, a1_ii, a2_iikk, x, Debye_0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function seems mis-named. Perhaps _debye_temperature_fast
?
Looks good to me, thanks! |
- jit some functions - add misc/performance.py with several checks
This patch increases performance from:
4331518 function calls (4024502 primitive calls) in 6.741
seconds
to
3574686 function calls (3263157 primitive calls) in 4.139
seconds