Unverified Commit 5203bb0b authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Refael Ackermann
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 8ddb725f
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