Skip to content
Snippets Groups Projects
Commit 9e3b283e authored by Dominik Smith's avatar Dominik Smith Committed by Dominik Smith
Browse files

Replaced std::map by std::unordered_map in cbm::algo::Calibrate. Produces sizable performance gain.

parent d11da396
No related branches found
No related tags found
1 merge request!1462Various small optimizations to online TOF code.
...@@ -28,7 +28,7 @@ namespace cbm::algo::tof ...@@ -28,7 +28,7 @@ namespace cbm::algo::tof
calDigiOut.reserve(digiIn.size()); calDigiOut.reserve(digiIn.size());
// channel deadtime map // 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++) { for (size_t iDigi = 0; iDigi < digiIn.size(); iDigi++) {
......
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