-
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
Avoid extra memory use in CaloSubdetectorGeometry #46507
Conversation
- Created CaloCellGeometry*Ptr classes for controlling access to cells held or created by Calo geometry classes - PFRecHit still holds a std::shared_ptr as ROOT requires the class to have a working copy constructor.
cms-bot internal usage |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46507/42362
|
A new Pull Request was created by @Dr15Jones for master. It involves the following packages:
@Dr15Jones, @Moanwar, @bsunanda, @civanch, @jfernan2, @kpedro88, @makortel, @mandrenguyen, @mdhildreth, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
I would have liked to remove the use of To make a workable copy constructor for
A shared ownership could be achieved if Looking at the CaloCellGeometry classes, it does look like they might have extra padding bytes so adding the reference count might not change their actual memory footprint. |
NOTE: as an experiment I added an |
type performance-improvements |
+1 Size: This PR adds an extra 104KB to repository Comparison SummarySummary:
|
+geometry |
The ~8 MB increase in maxmemory is likely related to #46359 and the substantial number of packages being checked out. Looking at the logs directly, e.g. 141.046 (EGamma 2023D) step 3 (reco) the total number of allocations decreases from 2998 million to 2775 million, i.e. a reduction of 222 million allocations, or 7.4 %. |
In 29634.0 (TTbar 2026D110) step 3 (reco) the number of allocations decreases from 250 million to 245 million, i.e. a reduction of 4.9 million or 2.0 %. |
+1 |
+Upgrade |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @rappoccio, @mandrenguyen, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
@Dr15Jones Could you remove the |
I removed the [RFC]. I am working on doing the reference count version of this code, but there isn't really a reason to wait for that. |
+1 |
PR description:
This was based on the issue #46433
PR validation:
Code compiles. New unit test passes.