mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
performance: reserve vector before push_back's
Related-To: NEO-12742 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
169469eb06
commit
b724c964fc
@@ -1066,6 +1066,8 @@ ze_result_t KernelImp::initialize(const ze_kernel_desc_t *desc) {
|
||||
static_cast<size_t>(this->kernelImmData->getKernelInfo()->heapInfo.kernelHeapSize));
|
||||
}
|
||||
|
||||
this->kernelArgHandlers.reserve(kernelDescriptor.payloadMappings.explicitArgs.size());
|
||||
|
||||
for (const auto &argT : kernelDescriptor.payloadMappings.explicitArgs) {
|
||||
switch (argT.type) {
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user