Unverified Commit e2356e72 authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Anna Henningsen
Browse files

assert: improve deepEqual Set and Map worst case

This change improves the algorithm for the worst case from O(n^2)
to O(n log n) by using a lazily initiated set with object or
not strict equal primitives keys.

In addition a few comments got fixed and a statement simplified.

PR-URL: https://github.com/nodejs/node/pull/14258


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
parent 9252b8c0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment