-
-
Notifications
You must be signed in to change notification settings - Fork 202
perf(grid): Optimize VDOM generation in Row.updateContent #9156
Copy link
Copy link
Closed
Labels
aibugSomething isn't workingSomething isn't workingperformancePerformance improvements and optimizationsPerformance improvements and optimizations
Description
Currently, Neo.grid.Body.createViewData calls updateContent on all visible rows during every scroll tick.
Neo.grid.Row.updateContent unconditionally calls createVdom, even if the record and row index are identical.
This results in thousands of unnecessary VDOM re-generations and cellRenderer executions (e.g., Component columns) during simple scrolling.
Changes:
- Neo.grid.Row: Update
updateContentto accept aforceflag. SkipcreateVdomif!force,record, androwIndexare unchanged. - Neo.grid.Body:
- Update
createViewDatato acceptforce. - Track
lastMountedColumnsto auto-detect if horizontal scrolling/resizing requires a forced update. - Pass
forcetorow.updateContent.
- Update
- Review Triggers: Ensure other config changes (like
commitsOnlyin DevIndex) properly trigger a forced update.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aibugSomething isn't workingSomething isn't workingperformancePerformance improvements and optimizationsPerformance improvements and optimizations