Limit allocations in execute command list

Reserve space in ResidencyContainer

Related-To: NEO-6837

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2022-04-06 13:59:23 +00:00
committed by Compute-Runtime-Automation
parent 8d5c674110
commit 4044320301
4 changed files with 6 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ CommandContainer::CommandContainer() {
for (auto &allocationIndirectHeap : allocationIndirectHeaps) {
allocationIndirectHeap = nullptr;
}
residencyContainer.reserve(startingResidencyContainerSize);
}
CommandContainer::CommandContainer(uint32_t maxNumAggregatedIdds) : CommandContainer() {