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

Do not retain singleton RangeSets

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 8.0.0
    • model-ri
    • None

    Description

      Heap analysis shows we are retaining ImmutableRangeSets, which are backed by a SingletonImmutableList. This is not terribly bad, but still costs us some 32K retained objects which we can easility re-create on demand. Update Resolved{Length,Range}Constraint to retain only a Range for the common case of having a single available range.

      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: