With all the work done in YANGTOOLS-784 we are now in a place where we have rather good command of substatement lifecycle so that unused substatement contexts get cleaned up.
Unfortunately we still end up materializing substatements even when there was no inference and we may actually end up building an EffectiveStatement which is equal to our prototype.
Devise a reactor-internal shortcut where InferredStatementContext can ask its prototype to provide an EffectiveStatement taking parent/history (and probably others) into account. This shortcut needs to be taken when InferredStatementContext.substatements is null – i.e. the difference is only in things InferredStatementContext has readily available.
- split to
-
YANGTOOLS-1208 Migrate users of StatementPolicy.legacyDeclaredCopy()
- Resolved
-
YANGTOOLS-1207 Do not populate namespaces during effective templating
- Confirmed