[MDSAL-551] Allow Binding/DOM lists to be populated lazily Created: 05/May/20  Updated: 12/May/20  Resolved: 12/May/20

Status: Resolved
Project: mdsal
Component/s: Binding runtime
Affects Version/s: None
Fix Version/s: 6.0.1

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

Issue Links:
Blocks
is blocked by YANGTOOLS-1101 Add NormalizedNodeContainer.size() Resolved

 Description   

This is a counterpart to MDSAL-539 to deal with our eager instantiation of List entries in the DOM->Binding access path.

There are two access patters – either we are looking for a particular entry, or all the nodes need to be processed. In the former case we may end up creating a lot of objects without them ever being touched. In the latter case we may end up performing a lot of upfront work before application logic gets a chance to run.

Add a LazyBindingList implementation, which will instantiation CodecDataObjects on first access. These should be used for objects larger than a configurable cut-off point.


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