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