Skip to content

perf(fmt): share compile cache with workers - #213

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/perf-worker-compile-cache
Aug 6, 2026
Merged

perf(fmt): share compile cache with workers#213
chenjiahan merged 3 commits into
mainfrom
chenjiahan/perf-worker-compile-cache

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Node's compile cache was enabled only for the main CLI process, so rs fmt workers could not reuse compiled modules. This PR propagates the directory returned by module.enableCompileCache() through NODE_COMPILE_CACHE, allowing subsequently spawned workers to share the same on-disk cache while preserving the existing Node version guard.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: aad7bd7
Status:⚡️  Build in progress...

View logs

@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: 1b4fc8b611

ℹ️ 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/rstack/bin/rs.js
@chenjiahan
chenjiahan merged commit fc0678b into main Aug 6, 2026
3 of 4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-worker-compile-cache branch August 6, 2026 03:57
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