Skip to content

Commit

Permalink
util: improve inspect performance
Browse files Browse the repository at this point in the history
This significantly improves the inspection performance for all array
types. From now on only the visible elements cause work instead of
having to process all array keys no matter how many entries are
visible.

This also moves some code out of the main function to reduce the
overall function complexity.

PR-URL: nodejs#22503
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: John-David Dalton <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
BridgeAR authored and targos committed Sep 23, 2018
1 parent 0560cd0 commit 15b0c80
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 241 deletions.
Loading

0 comments on commit 15b0c80

Please sign in to comment.