Inspector pane recomputes while hidden #194

closed cmc opened this on 2026-11-22 07:11 UTC · feature · milestone 1 Reviews and cleanup

Discussion

cmc 2026-11-22 07:11 UTC

Severity: Medium.

InspectorPane's .task runs with inspectorShown false, the default (Sources/Orgstar/InspectorPane.swift:44, Sources/Orgstar/ContentView.swift:284), and refresh() builds a DocumentModel and a clock report for the whole file on the main actor (:123-143). Measured 362 ms per typing pause for a 1 MB file. Run it only while the inspector is shown, off the main actor.

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

Platforms: macOS.

closed by cmc in commit 6ca4dbeb3e: Compute the inspector's content off the main actor, only while it is shown

2026-11-22 12:37 UTC