Clixon 4.4 three compile-time options: MOVE_TRANS_END for changing transaction-end callbacks; STATE_ORDERED_BY_SYSTEM to make state data system ordered; XML_MERGE_TWO_ROUNDS to improve xml_merge performance.

This commit is contained in:
Olof hagsand 2020-04-02 14:28:58 +02:00
parent 5535239363
commit 662d6b0a3f
19 changed files with 483 additions and 61 deletions

View file

@ -222,6 +222,11 @@ main(int argc,
/* Populate */
if (xml_bind_yang(x, YB_MODULE, yspec, NULL) < 0)
goto done;
/* sort */
if (xml_apply(x, CX_ELMNT, xml_sort, h) < 0)
goto done;
if (xml_apply(x, -1, xml_sort_verify, h) < 0)
clicon_log(LOG_NOTICE, "%s: sort verify failed", __FUNCTION__);
/* Add default values */
if (xml_apply(x, CX_ELMNT, xml_default, h) < 0)
goto done;
@ -239,10 +244,7 @@ main(int argc,
fprintf(stderr, "xml validation error: %s\n", cbuf_get(cb));
goto done;
}
if (xml_apply0(x, CX_ELMNT, xml_sort, h) < 0)
goto done;
if (xml_apply0(x, -1, xml_sort_verify, h) < 0)
clicon_log(LOG_NOTICE, "%s: sort verify failed", __FUNCTION__);
}
/* Repeat for profiling (default is nr = 1) */
xvec = NULL;