assert,util: improve performance · nodejs/node@80d9d56 · GitHub
Skip to content

Commit 80d9d56

Browse files
BridgeARaduh95
authored andcommitted
assert,util: improve performance
This improves the performance for array comparison by making the sparse array detection simpler. On top of that it adds a fast path for sets and maps that only contain objects as key. PR-URL: #57370 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
1 parent d52a71f commit 80d9d56

1 file changed

Lines changed: 83 additions & 46 deletions

File tree

lib/internal/util/comparisons.js

Lines changed: 83 additions & 46 deletions

0 commit comments

Comments
 (0)