YANG optimize, add orig pointer for derived trees

Skip some yang objects in derived trees
Add function to remove USES in augment/grouping trees
This commit is contained in:
Olof hagsand 2024-08-06 16:50:07 +02:00
parent ca786da156
commit 781c9d9d27
11 changed files with 294 additions and 118 deletions

View file

@ -204,3 +204,9 @@
* If not set, reduces memory with 8 bytes per yang-stmt.
*/
#undef YANG_SPEC_LINENR
/*! Use ref origin pointer to skip as many derived yang nodes as possible
*
* If set, do not copy some YANG nodes to derived trees (ie augmented or grouped trees)
*/
#define YANG_ORIG_PTR_SKIP