[MDSAL-407] Teach BindingNormalizedNodeCache to cache leaf type objects Created: 14/Dec/18  Updated: 29/Apr/19  Resolved: 29/Apr/19

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

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

Issue Links:
Blocks
is blocked by MDSAL-406 Tag generated types with a marker int... Resolved

 Description   

While we can cache entire DataObjects to their NormalizedNode counterparts, we do not have the ability to perform caching of constituent leaf nodes.

This comes from the fact that generated wrappers are not tagged with an interface, which is being addressed by MDSAL-406.

Once we have a tag, we should allow users to specify which generated wrappers are candidates for caching, so that we end up reusing LeafNodes where possible.

Note that this requires a form of hierarchy, as the type definition may be a typedef used in a leaf – in which case we must make sure that we preserve correct namespaces.

Leaf-lists are not necessarily in scope of this issue, although it would be nice if we could cache individual leaf-list items.



 Comments   
Comment by Robert Varga [ 11/Apr/19 ]

The final bit is purely internal to the codec, but is high-risk, so I am postponing this to 4.0.1.

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