mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-29 06:54:27 -05:00
RandomX JIT refactoring
- Smaller memory footprint - A bit faster overall
This commit is contained in:
@@ -50,14 +50,8 @@ class RxVm
|
||||
public:
|
||||
XMRIG_DISABLE_COPY_MOVE_DEFAULT(RxVm);
|
||||
|
||||
RxVm(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node);
|
||||
~RxVm();
|
||||
|
||||
inline randomx_vm *get() const { return m_vm; }
|
||||
|
||||
private:
|
||||
int m_flags = 0;
|
||||
randomx_vm *m_vm = nullptr;
|
||||
static randomx_vm* Create(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig::Assembly assembly, uint32_t node);
|
||||
static void Destroy(randomx_vm* vm);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user