From 6abf8ff88d6f9914a7d6a3971c9bc835e7fdd62d Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 6 Jul 2023 10:15:50 +0800 Subject: [PATCH] enh(tsdb): opt perf. --- include/util/tarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/tarray.h b/include/util/tarray.h index 9638a2a035..f56c9e3a17 100644 --- a/include/util/tarray.h +++ b/include/util/tarray.h @@ -22,7 +22,7 @@ extern "C" { #endif -#define TARRAY_MIN_SIZE 8 +#define TARRAY_MIN_SIZE 4 #define TARRAY_GET_ELEM(array, index) ((void*)((char*)((array)->pData) + (index) * (array)->elemSize)) #define TARRAY_ELEM_IDX(array, ele) (POINTER_DISTANCE(ele, (array)->pData) / (array)->elemSize) -- GitLab