Repository navigation
perf(data-grid): cut reloads, draw work and selection cost on large tables - #4335
Merged
Merged
Conversation
…ction with ranges
…t of the frozen pane
datlechin
enabled auto-merge (squash)
November 19, 2026 00:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.reload.reloadRowsno longer sends.columnsChangedfirst, andreloadHeldRowsis gone.Delta.columnMetadataChanged, which keeps the formatted text and reconciles columns only when an accessory moved. An open editor or popover follows that reconcile.configureForTablerepaints after a load only when staged rows existed.CTLine, pixel for pixel where string drawing put them. Cells clip throughCGContext.GridSelectionSnapshotholds row ids asRowIDRuns, and the selection mirror intersects ranges.repaintAllRowsis the new.allRowsRepainted, which rebuilds the marks from the change manager..claude/rules/data-grid.md,.claude/rules/ui-tests.md.TableRowsMetadataTests(updateDisplayMetadataStoresComments),TableRowsGeneratedColumnsTests(updateReportsChange),ParseSchemaMetadataTests(the declared types case),SeedBufferFromErrorResultTests.failureUnderAnOpenEditorReconcilesTheGrid(the reload now carries the columns).DataGridCellAppearanceTests.prewarmedTextKeepsTheFormattedFlagnow goes through the batch path.Test plan
TableLoadReloadCountTests,DataGridColumnMetadataTests,RowIDRunsTests,DataGridCellTextTests, and the new cases inDataGridModelTests,DataGridDisplayCacheTests,HighlightRuleStorageTests,DataGridAccessibilityMountTests.HeaderSortUITests,DataEditUITests,GridFindUITests,FilterBarReturnUITests,InspectorEditReachesGridUITests,TableChangeReloadUITests,ForeignKeyNavigationUITests,ForeignKeyPickerUITests,TableAutoRefreshUITests,ValueFilterEditUITests,SearchDatabaseUITests,StructureSaveConfirmationUITests).DataEditUITestspassed on retry once, during a 16 s app stall while other builds ran, then passed 8 of 8 runs.