-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
ZETAN is not a constant
Line 10 in 4370da6
| static constexpr double ZETAN = 26.46902820178302; |
Though this line is directly copied from ycsb, it neglects the fact that ZETAN is determined by the num_keys_ and ZIPFIAN_CONSTANT.
In ycsb's implementation, the num_keys_ is also fixed, so the ZETAN can be a constant. See:
Hash function's keyspace may be too small
Line 60 in 4370da6
| inline uint32_t fnv1a(int fourBytes, uint32_t hash = SEED) { |
Using a fnv1a-32 is not consistent with yscb (fnv1a-64). It may cause hash collision and make keyspace not fully-covered when num_keys_ is closed with 2^32-1.
tong1heng
Metadata
Metadata
Assignees
Labels
No labels