Skip to content

Residual Pull. Use std::array of size 5. Avoid resizing a vector

More or less try to avoid this seen in heaptrack (ATLASRECTS-7471)

MOST TEMPORARY ALLOCATIONS
1875697 temporary allocations of 1875697 allocations in total (100.00%) from:
    std::vector<>::resize(unsigned long)
      at /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/include/c++/11.2.0/bits/stl_vector.h:940
      in /cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc11-opt/2023-01-31T2101/Athena/23.0.15/InstallArea/x86_64-centos7-gcc11-opt/lib/libTrkResidualPullCalculator.so
    Trk::ResidualPullCalculator::residuals(std::vector<>&, Trk::MeasurementBase const*, Trk::ParametersBase<> const*, Trk::ResidualPull::ResidualType, Trk::TrackState::MeasurementType) const
      at /build/atnight/localbuilds/nightlies/Athena/master/athena/Tracking/TrkTools/TrkResidualPullCalculator/src/ResidualPullCalculator.cxx:97

ping @sroe, @amete , @smh

Edited by Christos Anastopoulos

Merge request reports