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:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user