Skip to content

perf(build): framework libs (~150s) recompiled per project; core cache never hydrates #952

Description

@zackees

Context

#942 Phase-1 baseline, warm scenario (global cache fully warm, fresh project copy): fw-libs=150.7s re-runs in full for every new project directory even though the framework libraries are identical for a given platform + flag set. The fw-libs fingerprint only short-circuits within the same project (hot = 1 ms).

Related: core-cache-hydrate=0 ms in all 9 baseline runs while compile-core-variant always spends ~11 s and core-cache-store runs afterwards every time — i.e. the global core cache is written but apparently never hit, even cold → warm → hot inside one container session.

Proposal

  • Scope the framework-lib artifact cache globally (keyed by platform/toolchain/flag fingerprint) so a fresh project hydrates ~150 s of compiled framework objects, mirroring the package disk cache design.
  • Diagnose and fix the core-variant cache: why store-then-never-hydrate? (key mismatch across builds is the likely culprit.)

Acceptance criteria

Part of #942.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions