From 9e3b283e87ad9543236b578201546b588766228d Mon Sep 17 00:00:00 2001 From: Dominik Smith <smith@th.physik.uni-frankfurt.de> Date: Mon, 30 Oct 2023 23:38:01 +0100 Subject: [PATCH] Replaced std::map by std::unordered_map in cbm::algo::Calibrate. Produces sizable performance gain. --- algo/detectors/tof/Calibrate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algo/detectors/tof/Calibrate.cxx b/algo/detectors/tof/Calibrate.cxx index 9446775477..1da478be01 100644 --- a/algo/detectors/tof/Calibrate.cxx +++ b/algo/detectors/tof/Calibrate.cxx @@ -28,7 +28,7 @@ namespace cbm::algo::tof calDigiOut.reserve(digiIn.size()); // channel deadtime map - std::map<int32_t, double> mChannelDeadTime; + std::unordered_map<int32_t, double> mChannelDeadTime; for (size_t iDigi = 0; iDigi < digiIn.size(); iDigi++) { -- GitLab