Skip to content

perf(fmt): use one-shot crypto hash - #243

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-crypto-hash
Aug 8, 2026
Merged

perf(fmt): use one-shot crypto hash#243
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-fmt-crypto-hash

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Repeated content hashing on formatter cache paths currently creates a Hash object for every digest. This switches the formatter worker and cache identity helper to Node.js's one-shot crypto.hash() API, reducing per-call setup overhead while preserving the existing SHA-256 hex digests and cache compatibility.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 64c2a8d
Status: ✅  Deploy successful!
Preview URL: https://8cd995bc.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-perf-fmt-crypto-h.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit ee18c63 into main Aug 8, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-fmt-crypto-hash branch August 8, 2026 01:31
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