Skip to content

perf: hoist slash() call out of matchGlobs loop#912

Open
ilyaliao wants to merge 1 commit into
unplugin:mainfrom
ilyaliao:perf/match-globs-slash-hoist
Open

perf: hoist slash() call out of matchGlobs loop#912
ilyaliao wants to merge 1 commit into
unplugin:mainfrom
ilyaliao:perf/match-globs-slash-hoist

Conversation

@ilyaliao
Copy link
Copy Markdown
Collaborator

Description

This PR hoists slash(filepath) out of the matchGlobs loop so it's computed once per call instead of once per glob, since the value is invariant across iterations.

@ilyaliao ilyaliao requested a review from antfu as a code owner May 14, 2026 18:18
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/unplugin-vue-components@912

commit: eca58d7

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