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

Duplicate ConcreteTypeImpl classes

    XMLWordPrintable

Details

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

    Description

      Analysis of a freshly-booted SP edition indicates that there are ~6400 duplicates of String("QName") and ~5600 duplicates of String("Serializable"), wasting 720KiB of memory.

      Deeper analysis shows that these come from duplicate objects returned from org.opendaylight.yangtools.binding.generator.util.Types.typeForClass().

      Address this by instantiating a weakly-keyed, soft-valued cache of these objects.

      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: