Skip to content
Snippets Groups Projects
Commit d9ddd8c9 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

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
1 merge request!1284THistSvc: cache TObject types
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment