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

Improve a substatement context lookup in yang statement parser

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Highest
    • Resolution: Won't Do
    • None
    • None
    • parser
    • None
    • Operating System: All
      Platform: All

    Description

      Very often we need to check whether a substatement with a specific statement definition exists under some statement context in yang statement parser or to look up a substatement (or substatements) with a specific statement definition.

      Currently, in order to do that we need to iterate over all current context's substatements and check whether there is a substatement we are looking for.

      I think using a MultiMap keyed by StatementDefinition instead of List for substatement contexts will improve these lookups significantly.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            pkajsa Peter Kajsa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: