[museion-OPT-F3] Every save/watcher cycle re-reads and re-parses every post in the library (full-store rescan) #143

Closed
opened 2026-11-02 23:09:24 +01:00 by AlexKucera · 0 comments
Owner

Effort M · ticket-now (Alexander's cycle-1 verdict, 2026-11-02).

Evidence (~/argus-audits/audit/2026-11-02/museion-opt.md, F3 High): Museion/PostsModel.swift:182-232 (rescan fires on ANY FSEvents change → Post.scan + readBody + refreshCards); Museion/PostLibrary.swift:120-185 (:148 String(contentsOf:) per piece — every post.md read and parsed); Museion/PostStore.swift:49-69 (folder(of:) linear walk, 2–3× per cycle).

Fix direction: incremental update driven by the watcher's change set (mtime/offset-keyed cache) instead of full rescan per save. Same shape as vivarium-OPT-H1 — different repo, deliberately separate tickets. Full report: ~/argus-audits/audit/2026-11-02/museion-opt.md
[Generated by AI]

Effort M · ticket-now (Alexander's cycle-1 verdict, 2026-11-02). Evidence (~/argus-audits/audit/2026-11-02/museion-opt.md, F3 High): `Museion/PostsModel.swift:182-232` (`rescan` fires on ANY FSEvents change → `Post.scan` + `readBody` + `refreshCards`); `Museion/PostLibrary.swift:120-185` (`:148` `String(contentsOf:)` per piece — every post.md read and parsed); `Museion/PostStore.swift:49-69` (`folder(of:)` linear walk, 2–3× per cycle). Fix direction: incremental update driven by the watcher's change set (mtime/offset-keyed cache) instead of full rescan per save. Same shape as vivarium-OPT-H1 — different repo, deliberately separate tickets. Full report: ~/argus-audits/audit/2026-11-02/museion-opt.md [Generated by AI]
Sign in to join this conversation.