Skip to content

perf: native engine full-build regression in 3.9.2 (9.4s vs WASM 7.2s) #903

@carlos-alm

Description

@carlos-alm

Context

PR #901 benchmark data shows native full build time jumped from 5.2s (3.9.1) to 9.4s (3.9.2), an 81% increase despite only 17% more files (570 → 667). This is the first time native is slower than WASM for full builds.

Phase breakdown (1-file profile)

The bottleneck is outside parsing:

  • setupMs: 37.8ms native vs 1.8ms WASM (21x)
  • structureMs: 127.9ms native vs 34.6ms WASM (3.7x)
  • cfgMs: 53.6ms native vs 0.3ms WASM (179x)
  • dataflowMs: 31.3ms native vs 0.5ms WASM (63x)

Action

Identify and fix the regression in the native engine's structure, CFG, and dataflow phases before shipping 3.9.2.

Flagged by Greptile in PR #901.

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