Skip to content

Slight speedup of AthMonitoringAlg::getGroup

Walter Lampl requested to merge wlampl/athena:AthMonTHRef into main

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 to initialize()
  • Return a reference to a ToolHandle instead of a copy (copying GaudiHandles isn't exactly cheap, it involves copying a number of strings)

Merge request reports