THistSvc: cache TObject types
The `TObject::InheritsFrom` call can be quite slow. Since we already deduce the object type (`TH1`, `TTree`, etc.) during registration, save this information and use it instead of re-deriving it every time. Also avoid calling `updateFiles` if no TTrees are registered. Both these changes significantly speed up the `EndEvent` incident handling for jobs with large (>10k) number of histograms. Also re-organize `struct THistID` to avoid padding and delete unused `reset` method.
parent
4e698e4e
No related branches found
No related tags found
Showing
- GaudiExamples/tests/qmtest/refs/THistRead.ref 44 additions, 67 deletionsGaudiExamples/tests/qmtest/refs/THistRead.ref
- GaudiExamples/tests/qmtest/refs/THistRead.ref.dbg 98 additions, 121 deletionsGaudiExamples/tests/qmtest/refs/THistRead.ref.dbg
- GaudiExamples/tests/qmtest/refs/THistWrite.ref 145 additions, 168 deletionsGaudiExamples/tests/qmtest/refs/THistWrite.ref
- GaudiExamples/tests/qmtest/refs/THistWrite.ref.dbg 159 additions, 182 deletionsGaudiExamples/tests/qmtest/refs/THistWrite.ref.dbg
- GaudiSvc/src/THistSvc/THistSvc.cpp 66 additions, 85 deletionsGaudiSvc/src/THistSvc/THistSvc.cpp
- GaudiSvc/src/THistSvc/THistSvc.h 25 additions, 33 deletionsGaudiSvc/src/THistSvc/THistSvc.h
- GaudiSvc/src/THistSvc/THistSvc.icc 11 additions, 7 deletionsGaudiSvc/src/THistSvc/THistSvc.icc
Loading
Please register or sign in to comment