Details

    • Sub-task
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • parser
    • None

    Description

      This is the first step in fly-weight statements. As described in YANGTOOLS-1067, we want to reuse List<EffectiveStatement> instances if they do not change during the copy operation.

      This is mostly yang-parser-reactor work, but also requires exposing access to AbstractStatementSupport.createEffective(Current, List).

      This should prove effective in this test case:

       

      module foo {
        namespace foo;
        prefix foo;
      
        grouping grp {
          container foo {
            description "desc";
            reference "ref";
          }
        }
      
        uses foo;
      }

      while /grp/foo and /foo are distinct objects, their EffectiveStatement.effectiveSubstatements() need to return the same object.

       

       

      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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: