Skip to content

perf: do not create paths for files whose name cannot match when globbing - #1486

Merged
dsherret merged 1 commit into
mainfrom
perf/glob-name-only-entries
Nov 30, 2026
Merged

dsherret merged 1 commit into
mainfrom
perf/glob-name-only-entries

Conversation

@dsherret

Copy link
Copy Markdown
Member

Follow-up to #1484. Decides whether a file could match based on its name while reading the directory, so that no path gets created for the ones that cannot.

dprint output-file-paths with the TypeScript plugin on Linux:

Before After
TypeScript 74.7ms 68.0ms
Deno 112.2ms 106.6ms
DefinitelyTyped 61.4ms 61.3ms

@dsherret
dsherret merged commit 519c924 into main Nov 30, 2026
6 checks passed
@dsherret
dsherret deleted the perf/glob-name-only-entries branch November 30, 2026 00:06
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