Slight speedup of AthMonitoringAlg::getGroup
While profiling a job in order to understand ATLASRECTS-7798, I noticed that the method AthMonitoringAlg::getGroup
resembles a hotspot. This MR makes it a bit faster, saving about 220ms/event in a reconstruction job.
The main changes are:
- Moving the check for empty
ToolHandles
toinitialize()
- Return a reference to a ToolHandle instead of a copy (copying GaudiHandles isn't exactly cheap, it involves copying a number of strings)