mirror of
https://github.com/Zygo/bees.git
synced 2025-06-16 09:36:17 +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>
This commit is contained 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
|
||||
|
Reference in New Issue
Block a user