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

Compute YangInstanceIdentifier.hashCode lazily

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 9.0.0
    • data-api

    Description

      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.

      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: