-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assert: improve deep equal map #14501
Conversation
ping @mscdex |
PTAL |
Without having reviewed the changes, I'd say the performance numbers are ok. I would just say be sure to re-run those benchmarks if/when backporting this PR to v6 and/or v4 to make sure that there are no more serious regressions due to Crankshaft, etc. |
Welcome back @mscdex 🤗 |
PR-URL: #14501 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Landed in 9222fe6 |
PR-URL: #14501 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Not sure if we want to backport this to v6.x |
The same as #14258 |
This improves the performance for maps with object keys and for deepEqual loose equal primitive keys that contain primitives as value. The first part decreases the performance of the common case a tiny bit (primitive keys) in favor of the much slower worst case. Even though the common case must do a typecheck more I think it is favorable as it is also better to read that way.
In addition I updated a few comments.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
assert