perf: write-through in-memory cache for tracker JSON reads

All _load() calls after the first return the cached dict instead of
re-reading disk. _save() updates both disk and cache atomically.
Drops per-person tracker reads from ~90 to ~1 in the upload loop.
Keyed by resolved file path so test isolation (unique tmp_path dirs)
is preserved with no fixture changes needed.
This commit is contained in:
flan committed 2026-06-14 04:08:29 +00:00
1 parent f5ec9a0001
commit 4eb6e3169b
3 files changed
+25 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "winnow"
version = "0.4.7"
version = "0.4.8"
description = "Selects diverse, high-quality photos from Immich as training data for Frigate face recognition and object classification."
license = "AGPL-3.0-or-later"
requires-python = ">=3.13"