Skip to content
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

util: improve .inspect() array grouping #28070

Closed

Commits on Jun 11, 2019

  1. util: improve .inspect() array grouping

    This improves a couple minor things:
    
    * Arrays that contain entries other than `number` or `bigint` are
      ordered to the left instead of the right.
    * The bias towards more columns got increased. That mainly increases
      the number of columns for arrays that contain lots of short entries.
    * Columns are now more dense in case they would otherwise have extra
      whitespace in-between two columns.
    * The maximum columns got increased from 10 to 15.
    * The maximum number of columns per `compact` was increased from
      3 to 4.
    BridgeAR committed Jun 11, 2019
    Configuration menu
    Copy the full SHA
    2f6c2e9 View commit details
    Browse the repository at this point in the history
  2. util: use average bias while grouping arrays

    This makes sure that strongly deviating entry length are taken into
    account while grouping arrays.
    BridgeAR committed Jun 11, 2019
    Configuration menu
    Copy the full SHA
    9e7f4e2 View commit details
    Browse the repository at this point in the history