Skip to content

[virtualizer] Improve controlled mode performance#22123

Draft
romgrk wants to merge 2 commits intomui:masterfrom
romgrk:perf-virtualizer-context
Draft

[virtualizer] Improve controlled mode performance#22123
romgrk wants to merge 2 commits intomui:masterfrom
romgrk:perf-virtualizer-context

Conversation

@romgrk
Copy link
Copy Markdown
Contributor

@romgrk romgrk commented Apr 17, 2026

Follow-up to the controlled mode.

The virtualization logic is now adapted so in that mode:

  • the renderContext buffer size is 0, so no cells outside the visible viewport are rendered
  • the adaptive renderContext logic is disabled (the buffer doesn't change size during scrolling and isn't restored 1s after scrolling)

@romgrk romgrk added internal Behind-the-scenes enhancement. Formerly called “core”. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Apr 17, 2026
@code-infra-dashboard
Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 🔺+285B(+0.07%) 🔺+68B(+0.06%)
@mui/x-data-grid-pro 🔺+267B(+0.05%) 🔺+45B(+0.03%)
@mui/x-data-grid-premium 🔺+270B(+0.04%) 🔺+53B(+0.03%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 🔺+268B(+0.22%) 🔺+48B(+0.13%)

Details of bundle changes

Deploy preview

https://deploy-preview-22123--material-ui-x.netlify.app/


Check out the code infra dashboard for more information about this PR.

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

Labels

internal Behind-the-scenes enhancement. Formerly called “core”. scope: virtualizer type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants