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

MaterializedContainerNodes use inefficiently-sized HashMaps

    XMLWordPrintable

Details

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

    Description

      A heap dump analysis of the L2FIB scaling test shows some large overhead coming from HashMaps retained from MaterializedContainerNodes. Maps containing the individual FIB entries, each with two leaves, are sized for up to 16 entries, wasting at least 48 bytes per instance.

      This turns out to be two things: LazyContainerNode does not provide any hint when being promoted to a MaterializedContainerNode and MapAdaptor using only HashMap(Map) constructor to perform the copy.

      Attachments

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

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: