From 90f98250c29dc9bccb0ea0444ed37881e94a177b Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 9 Oct 2018 00:08:39 -0400 Subject: [PATCH] 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 --- src/bees-hash.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bees-hash.cc b/src/bees-hash.cc index 564bea8..e774c11 100644 --- a/src/bees-hash.cc +++ b/src/bees-hash.cc @@ -514,7 +514,9 @@ BeesHashTable::push_random_hash_addr(HashType hash, AddrType addr) auto pos = distribution(generator); int case_cond = 0; +#if 0 vector saved(er.first, er.second); +#endif if (found) { // If hash already exists after pos, swap with pos