perf: reduce number of errors thrown#12602
Conversation
🦋 Changeset detectedLatest commit: 86de2aa The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
f63eaeb to
c8ca5e6
Compare
|
Claude finished @anonrig's task —— View job Changeset Review Complete
The changeset Title formatting: The title "Optimize filesystem operations by using Node.js's throwIfNoEntry: false option" should follow the conventional commit format or imperative style as shown in the guidelines. It currently reads more like a description than a changelog entry. Consider rephrasing to:
The use of backticks around Otherwise:
Note: The image attached is not a cute animal, so no cuteness report is provided. |
c8ca5e6 to
53a29b4
Compare
53a29b4 to
cc39a34
Compare
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
03d9909 to
f512174
Compare
d4ebfd2 to
558e58d
Compare
petebacondarwin
left a comment
There was a problem hiding this comment.
I wonder if we should just be using the isDirectory() helper from fs-helpers.ts throughout the code rather than lstatSync?
46a54bd to
24a2b76
Compare
…gPath Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
24a2b76 to
7fc86c9
Compare
This reverts commit 58a4020.
Optimize filesystem operations by using Node.js's
throwIfNoEntry: falseoptionThis reduces the number of system calls made when checking for file existence by avoiding the overhead of throwing and catching errors for missing paths. This is an internal performance optimization with no user-visible behavioral changes.
A picture of a cute animal (not mandatory, but encouraged)