Each agenda model keeps its own parsed copy of every agenda file #197

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

Discussion

cmc 2026-11-22 07:11 UTC

Severity: Medium.

AgendaModel defaults to a private AgendaSourceCache; the Mac creates five (Sources/Orgstar/AgendaView.swift:111, BoardView.swift:33, AgendaSidebar.swift:34, ContentView.swift:1176, :1191) and iOS two that don't share (Sources/OrgstarMobile/MobileModel.swift:84, BoardScreen.swift:28). One cache for 10,000 files (19 MB) takes 7.5 s to build and holds 176 MB. Give the workspace one cache and pass it to every model.

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

Platforms: macOS, iOS.