mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
The digest is polled every 120 seconds. Its cycle line read the whole cycle history, 90 days of day logs and wrist temperature on every poll, outside any cache, and the coincident-deviation engine walked its eleven vitals one after another, two queries each. The cycle read now rides the digest extras cell, which every cycle write already hard-evicts; the cycle preferences route evicts it too, and a module switch does through the health-score invalidator. A record without a cycle profile stops after one point read. The per-vital reads run together and are folded in registry order, so the result does not depend on which finished first. On a seeded four-year account (1.25M measurements, 52 cycles) under a 792 MB heap, the warm digest went from 9.9 to 5.0 ms and the vitals engine from 11.1 to 4.6 ms (medians of four interleaved rounds).