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

tune performance #222

Merged
merged 2 commits into from
Jan 5, 2016
Merged

tune performance #222

merged 2 commits into from
Jan 5, 2016

Conversation

tjhei
Copy link
Member

@tjhei tjhei commented Dec 28, 2015

  • 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


if False:
r=timeit.timeit('__main__.test_grueneisen()', setup="import __main__", number=3)
print("test_grueneisen", r)
Copy link
Contributor

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?

Copy link
Member Author

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
@tjhei
Copy link
Member Author

tjhei commented Jan 3, 2016

okay, updated.

@tjhei tjhei mentioned this pull request Jan 3, 2016
@sannecottaar
Copy link
Contributor

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):
Copy link
Contributor

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?

@ian-r-rose
Copy link
Contributor

Looks good to me, thanks!

ian-r-rose added a commit that referenced this pull request Jan 5, 2016
- jit some functions
- add misc/performance.py with several checks
@ian-r-rose ian-r-rose merged commit 0f3327a into geodynamics:master Jan 5, 2016
@tjhei tjhei deleted the performance_2 branch January 5, 2016 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants