returning entry by copy instead of pointer | bench 10419455
This commit is contained in:
1 parent
0fd1add2c4
commit
ec46fddfe5
2 files changed
+18
-19
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user