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