Remember cache input data (#133)

Make init_cache and set_cache no-ops if fed the same data as before
This commit is contained in:
hyc
2019-10-04 08:31:32 +02:00
committed by tevador
parent f1199a9fc6
commit 01648b3bd6
4 changed files with 20 additions and 5 deletions
+3 -1
View File
@@ -65,6 +65,8 @@ protected:
randomx_dataset* datasetPtr;
};
uint64_t datasetOffset;
public:
std::string cacheKey;
};
namespace randomx {
@@ -80,4 +82,4 @@ namespace randomx {
void generateProgram(void* seed);
};
}
}