fix: use const auto& to avoid unnecessary copies

Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwoliński
2025-09-15 16:30:38 +00:00
committed by Compute-Runtime-Automation
parent dfd926a9c6
commit 8cf8fe4f5a
8 changed files with 9 additions and 9 deletions

View File

@@ -354,7 +354,7 @@ void Program::cleanCurrentKernelInfo(uint32_t rootDeviceIndex) {
if (executionEnvironment.memoryManager->isKernelBinaryReuseEnabled()) {
auto lock = executionEnvironment.memoryManager->lockKernelAllocationMap();
auto kernelName = kernelInfo->kernelDescriptor.kernelMetadata.kernelName;
const auto &kernelName = kernelInfo->kernelDescriptor.kernelMetadata.kernelName;
auto &storedBinaries = executionEnvironment.memoryManager->getKernelAllocationMap();
auto kernelAllocations = storedBinaries.find(kernelName);
if (kernelAllocations != storedBinaries.end()) {