Skip to content

perf(grid): eliminate duplicate 40-row sampling in computeResultGridColumnWidths and distributeResultGridSpareWidth - #1411

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1349-grid-sampling-spare-width
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1349-grid-sampling-spare-width

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1349

  • Passes outMaxRowChars from computeResultGridColumnWidths to capture maximum sampled row character lengths during initial column sizing.
  • Reuses _columnSampleMaxRowChars in distributeResultGridSpareWidth via maxRowChars parameter to eliminate the redundant 40-row re-sampling loop across all columns.
  • Preserves exact sizing behavior with new unit test coverage in results_tab_test.dart.

…olumnWidths and distributeResultGridSpareWidth
@github-actions github-actions Bot added frontend Theme parser epic label: frontend performance Theme parser epic label: performance data-grid Interactive data grid, cell editor, filtering, groupings P3 Low priority / Polish & Enhancements labels Oct 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 907b81e into dev Oct 11, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1349-grid-sampling-spare-width branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-grid Interactive data grid, cell editor, filtering, groupings frontend Theme parser epic label: frontend P3 Low priority / Polish & Enhancements performance Theme parser epic label: performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant