From 8f6b7dace4ffb10b88f27d0a006d30b154d9ba05 Mon Sep 17 00:00:00 2001 From: tickduan <417921451@qq.com> Date: Wed, 21 Jul 2021 14:51:20 +0800 Subject: [PATCH] drop comment debug test information --- cmake/define.inc | 1 - src/util/inc/tscompression.h | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/cmake/define.inc b/cmake/define.inc index 844d776629..6c466fee02 100755 --- a/cmake/define.inc +++ b/cmake/define.inc @@ -1,7 +1,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8...3.20) PROJECT(TDengine) - IF (TD_ACCOUNT) ADD_DEFINITIONS(-D_ACCT) ENDIF () diff --git a/src/util/inc/tscompression.h b/src/util/inc/tscompression.h index 789af48222..3f2160bbf2 100644 --- a/src/util/inc/tscompression.h +++ b/src/util/inc/tscompression.h @@ -75,10 +75,6 @@ extern bool lossyDouble; int tsCompressInit(); // exit call void tsCompressExit(); - -void cost_start(); -double cost_end(const char* tag); -void show_rate( int in_len, int out_len); #endif static FORCE_INLINE int tsCompressTinyint(const char *const input, int inputSize, const int nelements, char *const output, int outputSize, char algorithm, @@ -233,15 +229,8 @@ static FORCE_INLINE int tsCompressFloat(const char *const input, int inputSize, if (algorithm == ONE_STAGE_COMP) { return tsCompressFloatImp(input, nelements, output); } else if (algorithm == TWO_STAGE_COMP) { - //cost_start(); int len = tsCompressFloatImp(input, nelements, buffer); - //cost_end(" td_first_compress"); - //show_rate(inputSize, len); - //cost_start(); - int ret = tsCompressStringImp(buffer, len, output, outputSize); - //cost_end(" td_second_compress"); - //show_rate(inputSize, ret); - return ret; + return tsCompressStringImp(buffer, len, output, outputSize); } else { assert(0); return -1; -- GitLab