Skip to content

V-375: Reuse dependency semantic snapshots for app edits#685

Open
drew-y wants to merge 4 commits into
mainfrom
drew/v-375-reduce-optimized-compiler-latency-with-precompiled-std
Open

V-375: Reuse dependency semantic snapshots for app edits#685
drew-y wants to merge 4 commits into
mainfrom
drew/v-375-reduce-optimized-compiler-latency-with-precompiled-std

Conversation

@drew-y

@drew-y drew-y commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add compiler-owned dependency semantic snapshots for std/pkg modules and reuse them across app-source edits.
  • Clone arena/effect/typing state safely so app compiles get fresh overlay state without mutating cached dependency semantics.
  • Keep profiling and benchmark harness, now measuring real one-line app code edits instead of unchanged artifact hits.

Validation

  • npm run typecheck
  • npm test
  • VOYD_COMPILER_LATENCY_REPEATS=2 VOYD_COMPILER_LATENCY_VTRACE_RUNTIME_SAMPLES=0 VOYD_BENCH_OPTIMIZE_MODES=true npm run bench:compiler-latency
  • Focused snapshot/sdk vitest suite: dependency snapshots, std/pkg invalidation, app edits, mixed-order SCCs, generic-heavy vtrace warm edit

Notes

  • Warm optimized app-edit compiles save ~10.9% to 27.9% in the recorded scenarios; vtrace remains dominated by whole-program emit/codegen.
  • Linear: V-375

@linear

linear Bot commented Jun 21, 2026

Copy link
Copy Markdown

V-375

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a4db3833ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/compiler/src/semantics/typing/type-arena.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae7a99cb1a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/compiler/src/modules/semantic-analysis.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant