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

Add support for caching the ElementXsecCache/interpolation entries to disk #24

Open
EinarElen opened this issue Nov 11, 2023 · 0 comments · May be fixed by #25
Open

Add support for caching the ElementXsecCache/interpolation entries to disk #24

EinarElen opened this issue Nov 11, 2023 · 0 comments · May be fixed by #25

Comments

@EinarElen
Copy link

As discussed last week, the Xsec calculation can be a significant part of the runtime of even simple applications. This could be reduced by simply writing the resulting cache to disk after a run is complete and attempting to load it when the cache is created. We already have the ability to stream the cache to disk so we just need the inverse :)

One thing that we should be careful with is to ensure that a cache created with one Xsec calculation method isn't used for a model that relies on another. I would think the easiest way to do that would be to have a header in the cache file that we check and warn if the user tries to use an incompatible one (and fall back to just calculating it from scratch)

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 a pull request may close this issue.

1 participant