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

feature request: Local caching of remote files #72

Open
NJManganelli opened this issue Feb 19, 2024 · 0 comments
Open

feature request: Local caching of remote files #72

NJManganelli opened this issue Feb 19, 2024 · 0 comments

Comments

@NJManganelli
Copy link

NJManganelli commented Feb 19, 2024

Network performance can be a nuisance in converting files. One option is to include a feature that will temporarily cache a whole file to a TMPDIR/scratch space, then e.g. do the conversion locally (permitting that file to be evicted naturally from the tmp space instead of having the user explicitly download and delete after conversion). A similar feature may be desirable for writing output as well; transferring a complete file being more resilient than iteratively writing over a narrow network pipe.

An older root-oriented example of doing this (fsspec etc. probably changes the scope/picture of doing this... in fact, https://filesystem-spec.readthedocs.io/en/latest/features.html#caching-files-locally):
(NanoAOD tools PostProcessor)

(simple http copy)
https://github.com/iris-hep/analysis-grand-challenge/blob/6458376a2d41b84e3290df4a03922d23d768f484/analyses/cms-open-data-ttbar/utils/file_input.py#L117

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