提交 3f5746d2 编写于 作者: X Xiaoyu Wang

enh: add binary serialization method to node structure

上级 d5735d60
...@@ -452,10 +452,12 @@ class PlannerTestBaseImpl { ...@@ -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 { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册