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

Performance bottlenecks #180

Open
jncots opened this issue Sep 14, 2023 · 0 comments
Open

Performance bottlenecks #180

jncots opened this issue Sep 14, 2023 · 0 comments

Comments

@jncots
Copy link
Collaborator

jncots commented Sep 14, 2023

  • Kinematics initialization uses particle packet which is quite slow. It is not a problem when it is called only once. However, when the composite target (for example air) is used the kinematics is copied and initialized multiple time. This make large overhead:

image (5)

  • The other problem is with adding a beam particles

image (6)

Again, it is related to composite target and a current implementation that requires initialization for each interaction, because nuclei changes.

It is noticed, that some simple functions related to particles, like getting A, or charge consume unresonable long time considering they return just a single number. These numbers should be cached before usage.

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

No branches or pull requests

1 participant