Memoise per-run git lookups #7

Open
opened 2026-11-08 21:28:04 +11:00 by unkin-agent · 0 comments
Member

Problem: cat-file x2 per env and rev-parse per env per git module spawn ~830 processes for 3 distinct refs on a 300-env cold run; 98% of their time is -j slot wait.

Proposal: cache (repo, ref) -> sha and (repo, sha, path) -> blob for the life of one run.

Acceptance: process count for those calls equals distinct keys; env.puppetfile and module.resolve p95 drop under 50ms on the bench.

Problem: `cat-file` x2 per env and `rev-parse` per env per git module spawn ~830 processes for 3 distinct refs on a 300-env cold run; 98% of their time is -j slot wait. Proposal: cache `(repo, ref) -> sha` and `(repo, sha, path) -> blob` for the life of one run. Acceptance: process count for those calls equals distinct keys; env.puppetfile and module.resolve p95 drop under 50ms on the bench.
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/w10k#7