hammer-editor/common
Adam Brown bfc06f7061 Cache dictionary tokens per entry instead of re-reading on every save
EncyclopediaRepository gains a typed entryChangeFlow (Saved/Deleted/ReId)
emitted alongside the existing Unit flow, carrying the persisted
EntryContent so consumers need no disk read. Suspending emit semantics:
cache-keeping consumers must never miss an event; with no subscribers
(temporary sync scopes) emits complete immediately.

ProjectDictionaryService now reads the encyclopedia once at initialize
to seed a per-entry token map, then updates single entries straight
from event payloads. Previously every entry save re-walked the
directory and TOML-decoded every entry. The union flows through a
StateFlow into the debounced push/clear gate, so the cache stays warm
while the feature is toggled off and re-enabling needs no disk.
2026-08-16 21:04:35 -07:00
..
src Cache dictionary tokens per entry instead of re-reading on every save 2026-08-16 21:04:35 -07:00
build.gradle.kts Slim down DI bootstrap/dispatcher doc comments 2026-07-15 15:56:58 -07:00