Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-462

UnknownSchemaNodeImpl retains empty ArrayLists

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martin.ciglan Martin Ciglan
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: