Remove redundant assignments (dead stores)
This commit is contained in:
1 parent
e577669062
commit
cdf4089457
4 files changed
+9
-15
No files matched your search
@@ -12,7 +12,6 @@ static void RollingBloom(benchmark::State& state)
|
||||
CRollingBloomFilter filter(120000, 0.000001);
|
||||
std::vector<unsigned char> data(32);
|
||||
uint32_t count = 0;
|
||||
uint64_t match = 0;
|
||||
while (state.KeepRunning()) {
|
||||
count++;
|
||||
data[0] = count;
|
||||
@@ -25,7 +24,7 @@ static void RollingBloom(benchmark::State& state)
|
||||
data[1] = count >> 16;
|
||||
data[2] = count >> 8;
|
||||
data[3] = count;
|
||||
match += filter.contains(data);
|
||||
filter.contains(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user