Details
-
Improvement
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
Description
L2FIB scale test analysis has shown we end up with a lot of duplicate strings in the heap – around 12MiB for 400K l2fib entries. All these strings are retained as a value of an enumeration leaf.
Enumeration's allowed values are known in SchemaContext, and EnumStringCodec already uses this information to validate incoming strings when it is available.
This makes it possible to perform String canonicalization with little overhead, which would result in elimination of duplicates when data is being introduced from outside of the system (such as via NETCONF/RESTCONF).