enh: plan serialization optimize
This commit is contained in:
parent
b9a2d3251c
commit
2992f50175
|
@ -23,11 +23,15 @@
|
||||||
#define tlvForEach(pDecoder, pTlv, code) \
|
#define tlvForEach(pDecoder, pTlv, code) \
|
||||||
while (TSDB_CODE_SUCCESS == code && TSDB_CODE_SUCCESS == (code = tlvGetNextTlv(pDecoder, &pTlv)) && NULL != pTlv)
|
while (TSDB_CODE_SUCCESS == code && TSDB_CODE_SUCCESS == (code = tlvGetNextTlv(pDecoder, &pTlv)) && NULL != pTlv)
|
||||||
|
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
typedef struct STlv {
|
typedef struct STlv {
|
||||||
int16_t type;
|
int16_t type;
|
||||||
int32_t len;
|
int32_t len;
|
||||||
char value[0];
|
char value[0];
|
||||||
} __attribute__((packed, aligned(1))) STlv;
|
} STlv;
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
typedef struct STlvEncoder {
|
typedef struct STlvEncoder {
|
||||||
int32_t allocSize;
|
int32_t allocSize;
|
||||||
|
|
Loading…
Reference in New Issue