-
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
[Phase2 RelVal] ~12 million allocations from MTDGeometricTimingDetESModule::produce()
#46512
Comments
assign Geometry/MTDNumberingBuilder |
New categories assigned: geometry,upgrade @bsunanda,@civanch,@Dr15Jones,@kpedro88,@makortel,@mdhildreth,@Moanwar,@srimanob,@subirsarkar you have been requested to review this Pull request/Issue and eventually sign? Thanks |
cms-bot internal usage |
A new Issue was created by @makortel. @Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
@cms-sw/mtd-dpg-l2 |
type performance-improvements |
Addressed in #46531 |
The PR was merged |
From #45854 (comment)
The
MTDGeometricTimingDetESModule::produce()
makes ~12 million memory allocations, of which nearly all come from string construction inDDNameFilter::accept()
(IgProf profile)cmssw/Geometry/MTDNumberingBuilder/plugins/DDCmsMTDConstruction.cc
Lines 28 to 29 in f71ff4c
The
ev.logicalPart().name().fullname()
returns a newly constructedstring
cmssw/DetectorDescription/Core/interface/DDName.h
Lines 40 to 43 in f71ff4c
Especially how the
DDNameFilter
is usedcmssw/Geometry/MTDNumberingBuilder/plugins/DDCmsMTDConstruction.cc
Lines 48 to 51 in f71ff4c
I'd suggest to compare the namespace and name parts of
DDName
separately to avoid the string construction.The text was updated successfully, but these errors were encountered: