Skip to content

Commit

Permalink
prevent unnecessary memory allocation and copy in eesm error model
Browse files Browse the repository at this point in the history
  • Loading branch information
pagmatt committed Jun 17, 2024
1 parent e0fa472 commit 40f2f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmwave/model/error-model/mmwave-eesm-error-model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MmWaveEesmErrorModel::MappingSinrBler(double sinr, uint8_t mcs, uint32_t cbSizeB
// Get the index of CBSIZE in the map
NS_LOG_INFO("For sinr " << sinr << " and mcs " << +mcs << " CbSizebit " << cbSizeBit
<< " we got bg type " << m_bgTypeName[bg_type]);
auto cbMap = GetSimulatedBlerFromSINR()->at(bg_type).at(mcs);
const auto& cbMap = GetSimulatedBlerFromSINR()->at(bg_type).at(mcs);
auto cbIt = cbMap.upper_bound(cbSizeBit);

if (cbIt != cbMap.begin())
Expand Down

0 comments on commit 40f2f65

Please sign in to comment.