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

Reuse leaf nodes for low-cardinality types

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      In a typical datastore, we can have a rather large number of leaf nodes, whose set of possible values has provably low cardinality, most notably boolean and enumerations.

      A typical example would be a L2FIB entry, which has a leaf action, which can have only two values. For 400K entries that translates to overhead of ~8MB in 400K objects.

      Introducing a (pre-instantiated?) cache of such leaf nodes would bring this down to a single instance for each NodeIdentifier/value combination, thus lowering our memory overhead. Typical users of this are schema aware translators, such as XML/JSON parsers and DataObject/NormalizedNode codec.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: