Unverified Commit 95bbb681 authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Refael Ackermann
Browse files

util: improve util.inspect performance

* improve util.inspect performance
  This is a huge performance improvement in case of sparse arrays
  when using util.inspect as the hole will simple be skipped.

* use faster visibleKeys property lookup

* add inspect-array benchmark

PR-URL: https://github.com/nodejs/node/pull/14492
Fixes: https://github.com/nodejs/node/issues/14487


Reviewed-By: default avatarAlexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
parent f2b01cba
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