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

yang-data-impl: decrease memory overhead of wrapped maps

    XMLWordPrintable

Details

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

    Description

      Profiling of a large-ish dataset loaded into the datastore has shown that we waste quite a bit of memory on UnmodifiableMap instances. As it turns out, our use of them leaves two out of three internal fields unused, which translates to pure overhead of 8 bytes per instance (in keySet and entrySet fields).

      Create a minimal wrapper class, which will be defensive enough, which will only cache the values() field.

      Attachments

        Issue Links

          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: