diff --git a/src/hyperloglog.c b/src/hyperloglog.c index 45527096..087aa763 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -51,8 +51,9 @@ * analysis of a near-optimal cardinality estimation algorithm. */ -#define REDIS_HLL_REGISTERS 16384 -#define REDIS_HLL_BITS 6 +#define REDIS_HLL_P 14 /* The greater is P, the smaller the error. */ +#define REDIS_HLL_REGISTERS (1<