-
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
Performance suggestions #6
Comments
I just gave you write access to the repo so feel free to work on a branch, obviously PR things for review before merging to master though. |
Some more ideas would be to cache neighbors and accelerations. This could potentially have a bigger impact than the above.
|
Yes, sounds worth a go. I used to have the neighbours as part of the |
@jgreener64 Regarding neighbors is it safe to assume that all |
For now I think we can assume that all |
In this case I'll just go with |
I noticed that even when I optimize a single acceleration function call to be faster than the one in |
Yeah that would be good. |
I've looked at the performance of a standard liquid argon simulation and I'd like to propose some small design changes.
force!
functions should returnnothing
since with the current design they are type unstable as the if branches at the beginning can returnnothing
. Since these are in-place functions, returning the forces does not seem particularly useful (and it is not used as far as I can tell). Due to the small union optimizations this is not a big performance problem, but it would be nice to improve the situation.If you agree, I can make PRs to address this changes.
The text was updated successfully, but these errors were encountered: