less element compress modify from 50 to 10

This commit is contained in:
tickduan 2021-07-13 18:38:27 +08:00
parent 270792053e
commit 656c966498
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
//prediction mode of temporal dimension based compression //prediction mode of temporal dimension based compression
#define SZ_PREVIOUS_VALUE_ESTIMATE 0 #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 SZ_ABS 0
#define REL 1 #define REL 1

View File

@ -303,7 +303,7 @@ int SZ_compress_args_double(double *oriData, size_t r1, unsigned char* newByteDa
// check at least elements count // check at least elements count
if(dataLength <= MIN_NUM_OF_ELEMENTS) 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; return SZ_LITTER_ELEMENT;
} }

View File

@ -305,7 +305,7 @@ int SZ_compress_args_float(float *oriData, size_t r1, unsigned char* newByteData
// check at least elements count // check at least elements count
if(dataLength <= MIN_NUM_OF_ELEMENTS) 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; return SZ_LITTER_ELEMENT;
} }