Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-493

Enumeration codec does not canonicalize values

    XMLWordPrintable

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).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: