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
use hash table for speed in HcalCalibrationsSet classes #15214
Conversation
A new Pull Request was created by @kpedro88 (Kevin Pedro) for CMSSW_8_1_X. It involves the following packages: CalibFormats/HcalObjects @ghellwig, @cerminar, @cmsbuild, @franzoni, @mmusich, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 |
@slava77 @smuzaffar that's a new one for me... any suggestions? |
@cmsbuild please test |
The tests are being triggered in jenkins. |
@cmsbuild please test |
(previous round of tests seems to have gotten stuck) |
The tests are being triggered in jenkins. |
It turns out that running
std::find()
andpush_back()
on a vector n times is an O(n2) operation, and when you have 700,000 cells*, it takes about an hour. This is suboptimal.Since these classes are CalibFormats, not CondFormats, and therefore not serialized, there is no reason not to use a hash table.
attn: @bsunanda, @lgray
*in the fine-segmented BH case for HGCal