-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[14_0_X] Remove redundant data members from InputFileCatalog to reduce memory use #47063
base: CMSSW_14_0_X
Are you sure you want to change the base?
[14_0_X] Remove redundant data members from InputFileCatalog to reduce memory use #47063
Conversation
The fileNames_ was used only in init(), and before being modified in init() it was a direct copy of logicalFileNames_. There doesn't seem to be any real need to store it as a data member, and removing it allows to save ~100 MB memory per stream on an example MC production (using premixing) DIGI job whose configuration specified had ~500k pileup files.
The logicalFileNames() was not used, so removing the member allows avoiding one copy of the LFNs.
The constructor makes a copy of the fileNames anyway. For the cases where InputFileCatalog is constructed with temporary or moved vector<string>, this change allows to avoid copying that vector. The Sources tend to pass in directly a temporary vector<string> from the ParameterSet, so there could be a visible reduction in memory churn.
A new Pull Request was created by @makortel for CMSSW_14_0_X. It involves the following packages:
@Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
cms-bot internal usage |
@cmsbuild, please test |
+1 Size: This PR adds an extra 16KB to repository Comparison SummarySummary:
|
PR description:
Backport of #47013
PR validation:
This branch is the original development. See description of #47013 for more details
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Backport of #47013