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

Refactor: Preview Table #4529

Merged
merged 13 commits into from
Apr 18, 2024
Merged

Refactor: Preview Table #4529

merged 13 commits into from
Apr 18, 2024

Conversation

briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Apr 7, 2024

This PR adds a performance-focused, zero dependency VirtualTable component with row and column virtualization. In this PR, it is used to replace all instances of PreviewTable across the application, but the component has been designed in such a way that it should also work as a replacement for DimensionTable and TDDTable in the future (with expected modifications). That said, reviews of this PR should consider it only as a replacement for PreviewTable. It features an improved handling of Tooltips, but one that is separate from the proposal for a global overhaul of that system.

You should see improvements in page load times, table render times, scroll performance, column resize frame rate, workspace responsiveness and heap snapshot size when viewing the table.

@briangregoryholmes briangregoryholmes self-assigned this Apr 7, 2024
@briangregoryholmes briangregoryholmes changed the title Bgh/preview table update Preview Table Refactor Apr 7, 2024
@briangregoryholmes briangregoryholmes marked this pull request as ready for review April 7, 2024 07:47
@briangregoryholmes briangregoryholmes changed the title Preview Table Refactor Refactor: Preview Table Apr 7, 2024
@briangregoryholmes briangregoryholmes linked an issue Apr 7, 2024 that may be closed by this pull request
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better performance! Nice work 👏

Copy link
Member

@djbarnwal djbarnwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR Brian. Couple of regressions (I am on firefox) -

  • The table for model/sources is not styled right
  • The column size is not adaptive. I would expect the columns with smaller values and header (in length) to have a thinner column. (Not a blocker but good to have if it doesn't add performance issues)
    image

@briangregoryholmes
Copy link
Contributor Author

@djbarnwal Got the Firefox one. Column sizes are set variably, but I was applying too much buffer, so that's been addressed as well.

@briangregoryholmes briangregoryholmes merged commit a18d2b8 into main Apr 18, 2024
4 checks passed
@briangregoryholmes briangregoryholmes deleted the bgh/preview-table-update branch April 18, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table performance refactor
3 participants