RandomX: allocate 2 MB pages for generated code, if possible

+0.2% boost on Ryzen 7 3700X
This commit is contained in:
SChernykh 2020-10-07 10:35:10 +02:00
parent ba47219185
commit a8466a139c
3 changed files with 22 additions and 3 deletions

View file

@ -64,7 +64,7 @@ randomx_vm* xmrig::RxVm::create(RxDataset *dataset, uint8_t *scratchpad, bool so
rx_blake2b_use_sse41 = Cpu::info()->has(ICpuInfo::FLAG_SSE41) ? 1 : 0;
# endif
return randomx_create_vm(static_cast<randomx_flags>(flags), !dataset()->get() ? dataset->cache()->get() : nullptr, dataset->get(), scratchpad, node);
return randomx_create_vm(static_cast<randomx_flags>(flags), !dataset->get() ? dataset->cache()->get() : nullptr, dataset->get(), scratchpad, node);
}