Skip to content

[EuiDataGrid] Changing the size of columns to change the set that are currently viewable triggers many, many calls to tabble #5162

Closed

Description

@kqualters

Sort of a continuation of the issue described in #5115 , whenever a user changes the set of columns that are currently viewable by resizing one, either by expanding a column so that another is pushed out of the table viewport or by shrinking a column so that another comes into view that was not previously, the number of calls to the tabbable library become prohibitively expensive for 50 or 100 rows of data.
image
image

A similar flamegraph can be seen on https://elastic.github.io/eui/#/tabular-content/data-grid

Activity

  1. paulewing commented on Sep 10, 2021

    @paulewing

    Thank you for raising this issue @kqualters-elastic. I would agree that this is a priority as I would expect users to frequently adjust column sizes to account for various field character lengths.

  2. mchopda commented on Sep 10, 2021

    @mchopda

    Agree @paulewing. Thank you for confirming the priority.

  3. kqualters commented on Sep 11, 2021

    @kqualters
    ContributorAuthor

    After @chandlerprall 's awesome work with #5163 , I've tested the table again and the difference is night and day
    image
    So much so that I no longer think we need to do elastic/kibana#111899 or elastic/kibana#111100 performance is good when using every interaction in EuiDataGrid that I'm aware of, even with 100 rows. @paulewing @XavierM @mchopda what do y'all think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions