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

Reintroduce kvectors cache #41

Closed
wants to merge 2 commits into from
Closed

Reintroduce kvectors cache #41

wants to merge 2 commits into from

Conversation

PicoCentauri
Copy link
Contributor

@PicoCentauri PicoCentauri commented Aug 31, 2024

Porting back kvector caching from #7 into the new code introduced in #15.

As discussed in #40. This will give some speedup when computing the potential several times for the same cell.

Merge after #40 !


📚 Documentation preview 📚: https://torch-pme--41.org.readthedocs.build/en/41/

@Luthaf
Copy link
Contributor

Luthaf commented Sep 2, 2024

This will give some speedup when computing the potential several times for the same cell.

You may want to benchmarlk/check this, it was completely negligible in rascaline's LODE. This implementation might behave differently though!

@PicoCentauri
Copy link
Contributor Author

I did and also here it makes no difference. But, I had the code ready in the past and just copied it over. Maybe I remove the cache it only leave the new class design...

@PicoCentauri
Copy link
Contributor Author

After I looked through the code again, we may even stick to the function as before. Does not really makes sense to use classes here...

@PicoCentauri PicoCentauri deleted the kvector_cache branch September 10, 2024 17:01
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.

2 participants