mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge #13767: Remove redundant assignments (dead stores)
dd777f3e12Remove unused variable (practicalswift)cdf4089457Remove redundant assignments (dead stores) (practicalswift) Pull request description: Remove redundant assignments (dead stores). Tree-SHA512: e852059b22a161c34a0f18a6a6ed798e2b35e6d2b9f23c526af0ec33e01f6a5bb1fa5ada6671ba183d7b02393ff0d397be5aa4b4e2edbd5e604c9a76ac48d249
This commit is contained in:
commit
fea4e9eca5
5 changed files with 10 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue