Expand description
Content-addressed build cache — V12-Spike-2.
Maps body_hash (SHA-256 of source text) to compiled artifacts.
If a CodeNode’s body hasn’t changed, its compiled output is reusable.
§Architecture
CodeNode.body_hash ──► BuildCache lookup
├── hit → return cached artifact (skip compilation)
└── miss → compile → store artifact → returnThe cache is backed by an Arrow RecordBatch, persisted to Parquet. This is a spike — validating that content addressing gives >90% cache hits on real NuSy development before committing to the full V13 build.
Modules§
- artifact_
col - Column indices for the build artifacts table.
Structs§
- Build
Cache - Content-addressed build cache backed by Arrow.
- Cache
Entry - A single cached build artifact.
- Cache
Stats - Cache performance statistics.
- Commit
Pair Measurement - Measurement between two consecutive commits.
- Crate
Deps - Crate dependency graph for transitive invalidation analysis.
- DepAware
Measurement - Per-commit dependency-aware measurement.
- Dependency
Aware Report - Result of dependency-aware cache analysis.
- Hash
Stability Report - Result of measuring hash stability across git commits.
Functions§
- build_
artifacts_ schema - Schema for the build artifacts cache table.
- collect_
file_ hashes - Collect file hashes for a single git commit.
- measure_
dep_ aware_ stability - Measure dependency-aware cache hit rates across git history.
- measure_
hash_ stability - Measure hash stability across recent git commits.
- recent_
commits - Get the last N commit hashes from git log.