enh: add binary serialization method to node structure
This commit is contained in:
parent
d5735d608c
commit
3f5746d20b
File diff suppressed because it is too large
Load Diff
|
@ -452,10 +452,12 @@ class PlannerTestBaseImpl {
|
||||||
char* pStr = NULL;
|
char* pStr = NULL;
|
||||||
int32_t len = 0;
|
int32_t len = 0;
|
||||||
|
|
||||||
// auto start = chrono::steady_clock::now();
|
auto start = chrono::steady_clock::now();
|
||||||
DO_WITH_THROW(nodesNodeToString, pRoot, false, &pStr, &len)
|
DO_WITH_THROW(nodesNodeToString, pRoot, false, &pStr, &len)
|
||||||
// cout << "nodesNodeToString: "
|
if (QUERY_NODE_PHYSICAL_PLAN == nodeType(pRoot)) {
|
||||||
// << chrono::duration_cast<chrono::nanoseconds>(chrono::steady_clock::now() - start).count() << endl;
|
cout << "nodesNodeToString: "
|
||||||
|
<< chrono::duration_cast<chrono::microseconds>(chrono::steady_clock::now() - start).count() << "us" << endl;
|
||||||
|
}
|
||||||
|
|
||||||
string str(pStr);
|
string str(pStr);
|
||||||
taosMemoryFreeClear(pStr);
|
taosMemoryFreeClear(pStr);
|
||||||
|
@ -466,10 +468,10 @@ class PlannerTestBaseImpl {
|
||||||
char* pStr = NULL;
|
char* pStr = NULL;
|
||||||
int32_t len = 0;
|
int32_t len = 0;
|
||||||
|
|
||||||
// auto start = chrono::steady_clock::now();
|
auto start = chrono::steady_clock::now();
|
||||||
DO_WITH_THROW(nodesNodeToMsg, pRoot, &pStr, &len)
|
DO_WITH_THROW(nodesNodeToMsg, pRoot, &pStr, &len)
|
||||||
// cout << "nodesNodeToMsg: "
|
cout << "nodesNodeToMsg: "
|
||||||
// << chrono::duration_cast<chrono::nanoseconds>(chrono::steady_clock::now() - start).count() << endl;
|
<< chrono::duration_cast<chrono::microseconds>(chrono::steady_clock::now() - start).count() << "us" << endl;
|
||||||
|
|
||||||
SNode* pNode = NULL;
|
SNode* pNode = NULL;
|
||||||
char* pNewStr = NULL;
|
char* pNewStr = NULL;
|
||||||
|
|
Loading…
Reference in New Issue