Whole-root scan costs a second per 10,000 files with nothing changed #212

open cmc opened this on 2026-11-22 07:11 UTC · feature · milestone Backlog

Discussion

cmc 2026-11-22 07:11 UTC

Severity: Low.

WorkspaceScanner.scan takes 0.97 s for 10,000 files (Sources/OrgWorkspace/Discovery.swift:109-138), and it runs at launch and after every trash or rename (Sources/OrgApp/WorkspaceModel.swift:430-435). A single-path reconcile is 20.5 ms, 13.4 ms of it loading every file state of the root (Sources/OrgWorkspace/Reconciler.swift:43). Reconcile only the affected paths after a trash or rename and read attributes in bulk.

From the performance review, docs/review-2026-11-21.md (#96).

Platforms: macOS, iOS.