Status: done (2026-11-01)
Priority: 2
Size: S
Arch: tooling
Phase: implement
Design ref: Time and calendar (1,000 pawns at speed). Review: docs/review-balance.md, Performance; docs/review-stability.md.
Goal: Late in a populous run a game day costs 4 times what it does early (small map, seed 7: 104 ms at 437 people, 446 ms at 1,034). Find the savings that change no behaviour.
Acceptance criteria:
refreshRoutes (src/sim/routes.js) works out the changed tiles’ hex coordinates once a day instead of once per cached route, and skips a route’s cost where the outcome is certain without it: a route of n steps costs between n cheapest steps (ROUTE.minStep) and n dearest (MAX_STEP, 3), so a changed tile nearer than n − 1 always drops it and one beyond n × 3.9 never does. The same routes are dropped as before.dailyStep, src/culture.js) draws each dimension’s noise into one scratch array, and the hourly contact count (noteContacts, src/sim/society.js) lists the housemates indoors without a new array per household.tests/golden.json is unchanged; npm run verify passes.
Notes / questions:st.contacts (so V8 keeps them as small integers) measured within noise and would re-record the golden file’s contacts entries.