prefetching tt for speedup | bench 5829415
This commit is contained in:
1 parent
ca51e59dd9
commit
9d26dc028d
2 files changed
+11
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user