From 9b634218be4f8d6eca4e0e4bd2fbfefefea6a5f1 Mon Sep 17 00:00:00 2001 From: faluco Date: Tue, 13 Apr 2021 17:35:23 +0200 Subject: [PATCH] Pre allocate some vectors members in the scheduler. --- srsenb/src/stack/mac/sched_phy_ch/sf_cch_allocator.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srsenb/src/stack/mac/sched_phy_ch/sf_cch_allocator.cc b/srsenb/src/stack/mac/sched_phy_ch/sf_cch_allocator.cc index 727479b95..f5eee1811 100644 --- a/srsenb/src/stack/mac/sched_phy_ch/sf_cch_allocator.cc +++ b/srsenb/src/stack/mac/sched_phy_ch/sf_cch_allocator.cc @@ -28,6 +28,9 @@ void sf_cch_allocator::init(const sched_cell_params_t& cell_params_) { cc_cfg = &cell_params_; pucch_cfg_common = cc_cfg->pucch_cfg_common; + dci_record_list.reserve(16); + last_dci_dfs.reserve(16); + temp_dci_dfs.reserve(16); } void sf_cch_allocator::new_tti(tti_point tti_rx_)