Skip to content

perf: improve regexp performance with non-capturing groups#314

Merged
pi0 merged 1 commit intounjs:mainfrom
KazariEX:perf/regex-group
Aug 22, 2025
Merged

perf: improve regexp performance with non-capturing groups#314
pi0 merged 1 commit intounjs:mainfrom
KazariEX:perf/regex-group

Conversation

@KazariEX
Copy link
Contributor

@KazariEX KazariEX commented Jul 3, 2025

Some capture groups are not used. We can modify them to non-capture groups or remove them to improve matching speed.

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

314 is my favorite PR thanks ❤️

@pi0 pi0 merged commit 6e9e613 into unjs:main Aug 22, 2025
@KazariEX KazariEX deleted the perf/regex-group branch August 22, 2025 19:54
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