mirror of
https://codeberg.org/wownero/RandomWOW
synced 2026-03-05 22:27:33 -05:00
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:
@@ -50,6 +50,7 @@ struct randomx_cache {
|
||||
randomx::DatasetInitFunc* datasetInit;
|
||||
randomx::SuperscalarProgram programs[RANDOMX_CACHE_ACCESSES];
|
||||
std::vector<uint64_t> reciprocalCache;
|
||||
std::string cacheKey;
|
||||
|
||||
bool isInitialized() {
|
||||
return programs[0].getSize() != 0;
|
||||
|
||||
Reference in New Issue
Block a user