Skip to content

Commit 409e575

Browse files
committed
sched: prereserve pdcch_slot_resource_allocator dfs trees
1 parent 5d41f1b commit 409e575

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/scheduler/pdcch_scheduling/pdcch_slot_resource_allocator.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
using namespace srsran;
1717

18+
pdcch_slot_allocator::pdcch_slot_allocator()
19+
{
20+
dfs_tree.reserve(MAX_DL_PDCCH_PDUS_PER_SLOT + MAX_UL_PDCCH_PDUS_PER_SLOT);
21+
saved_dfs_tree.reserve(MAX_DL_PDCCH_PDUS_PER_SLOT + MAX_UL_PDCCH_PDUS_PER_SLOT);
22+
}
23+
1824
pdcch_slot_allocator::~pdcch_slot_allocator() {}
1925

2026
void pdcch_slot_allocator::clear()

lib/scheduler/pdcch_scheduling/pdcch_slot_resource_allocator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class pdcch_slot_allocator
4242
unsigned record_index;
4343
};
4444

45+
pdcch_slot_allocator();
4546
~pdcch_slot_allocator();
4647

4748
/// Erase the current PDCCH allocations and stored context for this slot.

0 commit comments

Comments
 (0)