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

Do not retain singleton RangeSets

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 8.0.0
    • None
    • model-ri
    • None

      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.

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

              Created:
              Updated:
              Resolved: