impy-project / chromo

Hadronic Interaction Model interface in PYthon
Other
30 stars 7 forks source link

Performance bottlenecks #180

Open jncots opened 1 year ago

jncots commented 1 year ago

image (5)

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.