Skip to content

perf(ui): use binary search for visible column window in VirtualResultGrid - #527

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/524-binary-search-column-window
Jul 29, 2026
Merged

perf(ui): use binary search for visible column window in VirtualResultGrid#527
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/524-binary-search-column-window

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #524

Summary of Changes

  • Replaced linear while loops in computeVisibleColumnWindow (lib/features/main_screen/result_grid_view.dart) with logarithmic Binary Search (O(log C)).
  • Added unit tests covering binary search accuracy on 10,000 column datasets in test/features/main_screen/results_tab_test.dart.

Verification

  • flutter test test/features/main_screen/results_tab_test.dart passed (17/17 tests).
  • ulimit -n 8192 && flutter analyze passed without new errors.

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 378ec1d into dev Jul 29, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 29, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/524-binary-search-column-window branch July 30, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant