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

Consider bits type storage

    XMLWordPrintable

Details

    • Improvement
    • Status: In Progress
    • Medium
    • Resolution: Unresolved
    • None
    • 14.0.0
    • data-impl, data-util
    • None

    Description

      YANG 'bits' type is currently mapped to a Set<String>. This has pros (like model-independence) and cons (storage overhead).
      Assuming schema-informedness, we should be able to provide a Set which is backed by an int (or a long, or a byte[]) plus a offset-to-name mapping. This would lower our storage requirements in places where we can assume such a mapping.

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

              rkashapov Ruslan Kashapov
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: