mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Remove O(n) lookup in command container destructor
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f4c40c74cb
commit
647321af6f
@@ -254,9 +254,8 @@ void CommandContainer::handleCmdBufferAllocations(size_t startIndex) {
|
||||
if (isHandleFenceCompletionRequired) {
|
||||
this->device->getMemoryManager()->handleFenceCompletion(cmdBufferAllocations[i]);
|
||||
}
|
||||
if (!this->reusableAllocationList->peekContains(*cmdBufferAllocations[i])) {
|
||||
reusableAllocationList->pushFrontOne(*cmdBufferAllocations[i]);
|
||||
}
|
||||
|
||||
reusableAllocationList->pushFrontOne(*cmdBufferAllocations[i]);
|
||||
} else {
|
||||
this->device->getMemoryManager()->freeGraphicsMemory(cmdBufferAllocations[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user