From 656c9664981c878abeaca8773e693655655f3be8 Mon Sep 17 00:00:00 2001 From: tickduan <417921451@qq.com> Date: Tue, 13 Jul 2021 18:38:27 +0800 Subject: [PATCH] less element compress modify from 50 to 10 --- deps/SZ/sz/include/defines.h | 2 +- deps/SZ/sz/src/sz_double.c | 2 +- deps/SZ/sz/src/sz_float.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/SZ/sz/include/defines.h b/deps/SZ/sz/include/defines.h index ed12bfd8cb..99e7aa0bd3 100644 --- a/deps/SZ/sz/include/defines.h +++ b/deps/SZ/sz/include/defines.h @@ -22,7 +22,7 @@ //prediction mode of temporal dimension based compression #define SZ_PREVIOUS_VALUE_ESTIMATE 0 -#define MIN_NUM_OF_ELEMENTS 50 //if the # elements <= 20, skip the compression +#define MIN_NUM_OF_ELEMENTS 10 //if the # elements <= 20, skip the compression #define SZ_ABS 0 #define REL 1 diff --git a/deps/SZ/sz/src/sz_double.c b/deps/SZ/sz/src/sz_double.c index 91ed431849..680f0ad866 100644 --- a/deps/SZ/sz/src/sz_double.c +++ b/deps/SZ/sz/src/sz_double.c @@ -303,7 +303,7 @@ int SZ_compress_args_double(double *oriData, size_t r1, unsigned char* newByteDa // check at least elements count if(dataLength <= MIN_NUM_OF_ELEMENTS) { - printf("error, double input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS); + printf("warning, double input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS); return SZ_LITTER_ELEMENT; } diff --git a/deps/SZ/sz/src/sz_float.c b/deps/SZ/sz/src/sz_float.c index ff76e9c952..96824d5c51 100644 --- a/deps/SZ/sz/src/sz_float.c +++ b/deps/SZ/sz/src/sz_float.c @@ -305,7 +305,7 @@ int SZ_compress_args_float(float *oriData, size_t r1, unsigned char* newByteData // check at least elements count if(dataLength <= MIN_NUM_OF_ELEMENTS) { - printf("error, input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS); + printf("warning, input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS); return SZ_LITTER_ELEMENT; }