Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit e739171

Browse files
committed
Comments
1 parent 364cf3e commit e739171

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/codegen/util/hash_table.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace util {
2121

2222
static const uint32_t kDefaultNumElements = 256;
2323
static const uint32_t kNumBlockElems = 1024;
24-
static const uint32_t kDefaultEstimatePrecision = 5;
2524

2625
static_assert((kDefaultNumElements & (kDefaultNumElements - 1)) == 0,
2726
"Default number of elements must be a power of two");
@@ -96,8 +95,7 @@ HashTable::HashTable(::peloton::type::AbstractPool &memory, uint32_t key_size,
9695
directory_mask_(0),
9796
entry_buffer_(memory, Entry::Size(key_size, value_size)),
9897
num_elems_(0),
99-
capacity_(kDefaultNumElements),
100-
unique_key_estimate_(libcount::HLL::Create(kDefaultEstimatePrecision)) {
98+
capacity_(kDefaultNumElements) {
10199
// Upon creation, we allocate room for kDefaultNumElements in the hash table.
102100
// We assume 50% load factor on the directory, thus the directory size is
103101
// twice the number of elements.

0 commit comments

Comments
 (0)