Skip to content

Improve file reading and Particle creation#393

Open
Hendrik1704 wants to merge 9 commits intosparkx_develfrom
roch/improve_file_reading
Open

Improve file reading and Particle creation#393
Hendrik1704 wants to merge 9 commits intosparkx_develfrom
roch/improve_file_reading

Conversation

@Hendrik1704
Copy link
Collaborator

This refactors how SPARKX loads files in a single run (~5% performance improvement) and it implements caching and fast index lookup in the Particle class. That seemed to be a major bottleneck that is fixed now. Especially important for large events passed as an array initialization of Particle, this can lead to a speedup of ~40-50%.

The one pass read of files closes #355.

@Hendrik1704 Hendrik1704 added this to the SPARKX 2.2 milestone Feb 20, 2026
@Hendrik1704 Hendrik1704 self-assigned this Feb 20, 2026
@Hendrik1704 Hendrik1704 added the enhancement New feature or request label Feb 20, 2026
@Hendrik1704 Hendrik1704 linked an issue Feb 20, 2026 that may be closed by this pull request
@Hendrik1704
Copy link
Collaborator Author

After a bit of playing around I found that the electron was causing some problems because it is so light. This is a problem in the function where Jetscape input is used when the mass is computed from the energy and momentum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce file operations on readin

1 participant