returning entry by copy instead of pointer | bench 10419455

This commit is contained in:
rektdie committed 2025-08-20 02:14:58 +02:00
1 parent 0fd1add2c4
commit ec46fddfe5
2 files changed
+18 -19

No files matched your search

+2 -2
View File
@@ -61,9 +61,9 @@ public:
table.resize(size);
}
TTEntry* GetRawEntry(U64 &hashKey) {
TTEntry GetRawEntry(U64 &hashKey) {
TTEntry *current = &table[hashKey % table.size()];
return current;
return *current;
}
// returns used space per mill