Skip to content

perf: investigate 1-file incremental rebuild regression in 3.4.0 #635

@carlos-alm

Description

@carlos-alm

Context

Benchmark PR #627 recorded a disproportionate regression in 1-file incremental rebuild times in v3.4.0:

  • Native: 346ms → 448ms (+29%)
  • WASM: 508ms → 617ms (+21%)

The file count only grew ~7% (442 → 473 files), so the regression is disproportionate to codebase growth. For a single-file incremental rebuild, total file count should have minimal impact on latency.

Additionally, the WASM full build regressed +15% (4.4s → 5.0s), widening the native/WASM gap from ~1.85x to ~2.21x.

Investigation areas

  • Incremental rebuild path in domain/graph/builder.ts
  • Hash comparison and file-skip logic
  • Any new per-file overhead introduced in 3.4.0

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upDeferred work from PR reviews that needs tracking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions