提交 1bfb0918 编写于 作者: H Haojun Liao

refactor: opt perf.

上级 084dba54
...@@ -102,7 +102,9 @@ int32_t tGetValue(uint8_t *p, SValue *pValue, int8_t type) { ...@@ -102,7 +102,9 @@ int32_t tGetValue(uint8_t *p, SValue *pValue, int8_t type) {
n += tGetI32(p, &pValue->i32); n += tGetI32(p, &pValue->i32);
break; break;
case TSDB_DATA_TYPE_BIGINT: 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; break;
case TSDB_DATA_TYPE_FLOAT: case TSDB_DATA_TYPE_FLOAT:
n += tGetFloat(p, &pValue->f); n += tGetFloat(p, &pValue->f);
...@@ -123,7 +125,9 @@ int32_t tGetValue(uint8_t *p, SValue *pValue, int8_t type) { ...@@ -123,7 +125,9 @@ int32_t tGetValue(uint8_t *p, SValue *pValue, int8_t type) {
n += tGetU32(p, &pValue->u32); n += tGetU32(p, &pValue->u32);
break; break;
case TSDB_DATA_TYPE_UBIGINT: 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; break;
default: default:
ASSERT(0); ASSERT(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册