[YANGTOOLS-1223] Do not retain reused substatements Created: 07/Feb/21  Updated: 07/Feb/21  Resolved: 07/Feb/21

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 7.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Parser Performance

 Description   

In case we end up not needing to copy substatements and there is no existing reference towards us, we can skip instantiation of replicas as these will not be accessed afterwards.

This reduces the amount of garbage for the cost of a modest check against parent reference axis.


Generated at Wed Feb 07 20:55:32 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.