From 4c4733209828aba4b1d091048fcc3de6f7ff0263 Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao> Date: Thu, 29 Feb 2024 09:24:39 +0800 Subject: [PATCH] opt bloom filter --- source/libs/stream/src/streamUpdate.c | 2 +- source/util/src/tscalablebf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/stream/src/streamUpdate.c b/source/libs/stream/src/streamUpdate.c index 34ae909f03..764bf6e026 100644 --- a/source/libs/stream/src/streamUpdate.c +++ b/source/libs/stream/src/streamUpdate.c @@ -22,7 +22,7 @@ #define DEFAULT_MAP_CAPACITY 131072 #define DEFAULT_MAP_SIZE (DEFAULT_MAP_CAPACITY * 100) #define ROWS_PER_MILLISECOND 1 -#define MAX_NUM_SCALABLE_BF 32 +#define MAX_NUM_SCALABLE_BF 64 #define MIN_NUM_SCALABLE_BF 10 #define DEFAULT_PREADD_BUCKET 1 #define MAX_INTERVAL MILLISECOND_PER_MINUTE diff --git a/source/util/src/tscalablebf.c b/source/util/src/tscalablebf.c index a6e5b563d8..5ffa93c6f9 100644 --- a/source/util/src/tscalablebf.c +++ b/source/util/src/tscalablebf.c @@ -20,7 +20,7 @@ #define DEFAULT_GROWTH 2 #define DEFAULT_TIGHTENING_RATIO 0.5 -#define DEFAULT_MAX_BLOOMFILTERS 5 +#define DEFAULT_MAX_BLOOMFILTERS 4 #define SBF_INVALID -1 #define SBF_VALID 0