refactor: opt perf.
This commit is contained in:
parent
084dba5406
commit
1bfb09185c
|
@ -102,7 +102,9 @@ int32_t tGetValue(uint8_t *p, SValue *pValue, int8_t type) {
|
|||
n += tGetI32(p, &pValue->i32);
|
||||
break;
|
||||
case TSDB_DATA_TYPE_BIGINT:
|
||||
n += tGetI64(p, &pValue->i64);
|
||||
pValue->i64 = *(int64_t*)p;
|
||||
n += sizeof(int64_t);
|
||||
// n += tGetI64(p, &pValue->i64);
|
||||
break;
|
||||
case TSDB_DATA_TYPE_FLOAT:
|
||||
n += tGetFloat(p, &pValue->f);
|
||||
|
@ -123,7 +125,9 @@ int32_t tGetValue(uint8_t *p, SValue *pValue, int8_t type) {
|
|||
n += tGetU32(p, &pValue->u32);
|
||||
break;
|
||||
case TSDB_DATA_TYPE_UBIGINT:
|
||||
n += tGetU64(p, &pValue->u64);
|
||||
pValue->u64 = *(uint64_t*)p;
|
||||
n += sizeof(uint64_t);
|
||||
// n += tGetU64(p, &pValue->u64);
|
||||
break;
|
||||
default:
|
||||
ASSERT(0);
|
||||
|
|
Loading…
Reference in New Issue