Skip to content

perf: precompile picomatch matchers once per context#622

Open
ilyaliao wants to merge 1 commit into
unplugin:mainfrom
ilyaliao:perf/precompile-picomatch-matchers
Open

perf: precompile picomatch matchers once per context#622
ilyaliao wants to merge 1 commit into
unplugin:mainfrom
ilyaliao:perf/precompile-picomatch-matchers

Conversation

@ilyaliao

Copy link
Copy Markdown
Collaborator

Description

This PR precompiles picomatch matchers once at context creation instead of rebuilding them on every pm.isMatch(file, glob) call inside handleHotUpdate.

Mirrors the same optimization in unjs/unimport#535.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

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

@pkg-pr-new

pkg-pr-new Bot commented May 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/unplugin-auto-import@622

commit: f132b53

@userquin userquin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ❤️

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.

2 participants