Motivation & Problem
When a user selects a massive range in the Data Grid (e.g. 10,000+ cells via Ctrl+A or shift-selection), GridSelectionCalcEngine.compute performs string parsing, number normalization, variance calculation, and distinct set aggregation synchronously on the main thread for the DataGridCalcBar.
Proposed Solution
- In
DataGridCalcBar / GridSelectionCalcEngine:
- Introduce an adaptive calculation method (
computeAdaptive) that runs locally on the main thread when values.length < 5000, and offloads to compute(GridSelectionCalcEngine.compute, values) when selecting larger cell ranges.
- Add unit tests for adaptive selection stats computation.
Acceptance Criteria
Motivation & Problem
When a user selects a massive range in the Data Grid (e.g. 10,000+ cells via Ctrl+A or shift-selection),
GridSelectionCalcEngine.computeperforms string parsing, number normalization, variance calculation, and distinct set aggregation synchronously on the main thread for theDataGridCalcBar.Proposed Solution
DataGridCalcBar/GridSelectionCalcEngine:computeAdaptive) that runs locally on the main thread whenvalues.length < 5000, and offloads tocompute(GridSelectionCalcEngine.compute, values)when selecting larger cell ranges.Acceptance Criteria