Fixed dataset initialization speed on Linux if thread affinity was used.
This commit is contained in:
parent
ccd5fae5e1
commit
d4772cbd5d
9 changed files with 95 additions and 51 deletions
|
@ -29,11 +29,6 @@
|
|||
#include "rapidjson/document.h"
|
||||
|
||||
|
||||
#ifdef XMRIG_ALGO_RANDOMX
|
||||
# include "crypto/rx/Rx.h"
|
||||
#endif
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
static const char *kCn = "cn";
|
||||
|
@ -140,10 +135,6 @@ void xmrig::CpuConfig::read(const rapidjson::Value &value)
|
|||
m_assembly = Json::getValue(value, kAsm);
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
Rx::setInitThreads(m_initThreads);
|
||||
# endif
|
||||
|
||||
if (!m_threads.read(value)) {
|
||||
generate();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue