[YANGTOOLS-950] Optimize DataNodeContainerModificationStrategy child tracking Created: 05/Feb/19 Updated: 05/Feb/19 Resolved: 05/Feb/19 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | data-impl |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.0, 2.0.17, 2.1.9 |
| 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 | ||
| Description |
|
DataNodeContainerModificationStrategy is using a LoadingCache to lazily instantiate child strategies. This is memory-inefficient as well as slower on normal access, where the child has been instantiated. Rework tracking in terms of an ImmutableMap, which gets updated as needed. |