[YANGTOOLS-988] Allow ImmutableNormalizedNodeStreamWriter to be reused Created: 14/May/19  Updated: 15/May/19  Resolved: 14/May/19

Status: Resolved
Project: yangtools
Component/s: data-impl
Affects Version/s: None
Fix Version/s: 3.0.1, 2.0.19, 2.1.11

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
blocks CONTROLLER-1889 Rework NormalizedNodePruner in terms ... Resolved

 Description   

CDS is using NormalizedNodeStreamWriter to receive data in a very predictable environment, which lends itself to reusing NormalizedNodeStreamWriter instance - allowing its ArrayDeque to be allocated only once.

Add a Reusable variant of this class, which can be reset and reused multiple times.


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