• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • parser
    • None

      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.

       

       

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

              Created:
              Updated:
              Resolved: