ReviewOS

also looking at this

stacks/dtsx

perf(isolated): benchmark declaration generation paths

#3106
Merged chris wants to merge codex/isolated-mode-benchmarks into main
4 files +215 -6
9 days ago

Summary

  • fast-skip safe single-line initializers when isolated declarations provide an explicit contract
  • preserve the general JSX-aware scanner for multiline and complex syntax
  • benchmark isolatedDeclarations and semantic generation over identical uncached inputs
  • publish paired timings and speedups in the GitHub Actions benchmark summary

Local benchmark

  • small typed initializers: 4.7x faster
  • medium typed initializers: 16.2x faster
  • large typed initializers: 26.8x faster

Both paths must emit byte-for-byte identical declarations before timings are accepted.

Validation

  • bun run test (1613 pass)
  • bun run typecheck
  • bun run lint
  • bun run build
  • zig build test
  • bun run benchmark.ts --ci --json

4 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.