Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-10-11 04:51:49 +02:00
hash: remove pointless copy
"saved" is used only during hash table correctness analysis, which is normally not enabled at compile time, and requires source modification to enable. Remove the pointless copy and save a tiny bit of CPU. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
1 Ursprung
0c714cd55c
Commit
90f98250c2
1 Datei geändert
+2
@@ -514,7 +514,9 @@ BeesHashTable::push_random_hash_addr(HashType hash, AddrType addr)
|
||||
auto pos = distribution(generator);
|
||||
|
||||
int case_cond = 0;
|
||||
#if 0
|
||||
vector<Cell> saved(er.first, er.second);
|
||||
#endif
|
||||
|
||||
if (found) {
|
||||
// If hash already exists after pos, swap with pos
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren