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

Compute YangInstanceIdentifier.hashCode lazily

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • 9.0.0
    • None
    • data-api

      We are currently computing YangInstanceIdentifier's hashCode eagerly during construction. This is not needed in most cases, because even though it is used for equals(), we rarely perform equality/hash-base lookups and most of the time we just examine the PathArguments.

      Refactor the code to calculate the hashCode only when needed and update equals() methods to work on PathArguments only.

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

              Created:
              Updated:
              Resolved: