Repository navigation
perf(browser): keep large mixed-type grouped listings responsive - #1928
Conversation
Defer broad view-index replacements until lookup while preserving incremental appends and generation-aware source mappings. Cover staged selection, sorting, hidden rows, regrouping, teardown and file actions.\n\nRefs #1913
The full Rust run exposed an asynchronous readiness race after handing a video to its external player. Wait for the stream rather than assuming that preview focus implies it is initialized.
Reuse the existing type comparator and source-index mapping while preserving item identity across mixed-type arrival batches. Cover live hidden-file preferences in grouped List view. Refs #1913
Share window readiness between progress-notification and format-dialog fixtures so renderer startup does not consume their interaction deadlines.
|
Validation and benchmark handoff:
The earlier full Scope: the projection and shared source-index map affect selection, filtering, navigation and file-action targeting, so existing broad Rust results were retained, caller regressions rerun, and the final full QA suite executed. No new performance-only smoke launches or duplicate sorting/filtering rules were added. The production benchmark used the existing optimized QA-enabled binary (opt-level 3, LTO off), whose production logic matches this patch; subsequent changes were test readiness and whitespace only. On the synthetic 100k eight-byte mixed-extension files, 10k hidden, three fresh-process runs per setting:
Application RSS/observed peak: 210–213 MiB. This is full publication after terminal handlers, not first paint. The original 638 MB text / 8.8 GB image fixtures were not regenerated for the final projection benchmark. The temporary sub-second MIME-preparation/notification-batching shim is diagnostic only and is not shipped in this PR; production sub-second loading remains unachieved. The owner's latest request explicitly authorized committing, pushing and opening this PR after the earlier uncommitted-work hold. No validation or GUI-isolation requirement was waived. |
|
CI status: the dependency/spelling job is blocked by RUSTSEC-2026-0414 in the existing |
…review # Conflicts: # tests/qa/scenarios/hidden_files/hidden-files-persist-across-restart.jsonl
The grouped-list scenario waited for focus on the renamed row, but QA state only covers rendered rows and the renamed file lands offscreen in its new group; main behaves the same with the sort list model. Wait for the old row to leave the CSV group instead. Drop the duplicate 512-row pass from the eager-read regression, whose bound already scales with the row count.
|
Review pass:
Verification: |
Description
Remove repeated large-range regrouping/reindexing when mixed file types arrive in List view. A stable type-bucket projection reuses the existing comparator and filter, preserves item identity and section headings, and keeps small selection lookups from rebuilding the whole index. Extend existing hidden-file coverage and wait for initial window painting before two renderer-sensitive tests begin their timed interactions.
On a synthetic 100k mixed-extension folder containing 10k hidden files, the optimized QA-enabled build measured 1,968 ms median with hidden files off (90k visible), and 1,617 ms with them on (100k visible), across three runs each; application RSS/peak was 210–213 MiB. These measure full publication, not first paint, and do not reproduce the issue's full-sized media contents. The sub-second target is not achieved by this patch; the temporary background-preparation/notification-batching experiment is not included.
Visual evidence
N/A — existing presentation is preserved; this changes model publication and indexing.
How to test
Expected result: Loading completes without repeated whole-list stalls; grouping and hidden-file visibility remain correct, actions target the chosen file, previews appear, and no stale rows survive navigation.
Related issue
Closes #1913