prefetching tt for speedup | bench 5829415

This commit is contained in:
rektdie committed 2025-09-15 07:53:41 +02:00
1 parent ca51e59dd9
commit 9d26dc028d
2 files changed
+11

No files matched your search

+4
View File
@@ -61,6 +61,10 @@ public:
table.resize(size);
}
void PrefetchEntry(U64 &hashKey) {
__builtin_prefetch(&table[hashKey % table.size()]);
}
TTEntry GetRawEntry(U64 &hashKey) {
TTEntry *current = &table[hashKey % table.size()];
return *current;