[YANGTOOLS-462] UnknownSchemaNodeImpl retains empty ArrayLists Created: 10/Jun/15  Updated: 10/Apr/22  Resolved: 26/Jun/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Martin Ciglan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3659

 Description   

Memory profiling shows that UnknownSchemaNodeImpl wastes about 37kB in empty ArrayLists. This boils down to this allocation:

private final List<UnknownSchemaNode> unknownNodes = new ArrayList<>();

which is never squashed to a ImmutableList nor an emptyList.



 Comments   
Comment by Martin Ciglan [ 11/Jun/15 ]

fix pushed:

https://git.opendaylight.org/gerrit/#/c/22353/

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