Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-05-08 04:59:37 +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:
@@ -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