Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Patch:
      Code

      Description

      equiv-map is a private function used by the core map types (PHM and PTM) to determine map equivalence. The current implementation uses every? to map over all the entries in the first map and compare them against the other map. This has extra overhead as seqs are created and an object per entry.

      Using reduce-kv avoids the creation of seqs and entry objects making equivalence checks faster.

        Attachments

          Activity

            People

            • Assignee:
              tmulvaney Thomas Mulvaney
              Reporter:
              tmulvaney Thomas Mulvaney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: