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.

Backport-PR-URL: #23039
PR-URL: #22503
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
BridgeAR authored and targos committed Sep 24, 2018
1 parent 90bbab6 commit 5a13e66
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 241 deletions.
Loading

0 comments on commit 5a13e66

Please sign in to comment.