[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. |