Skip to content

Conversation

mrjf
Copy link
Contributor

@mrjf mrjf commented Oct 16, 2025

This pull request refactors several regular expressions used for path matching in both the async and sync module resolution logic, pre-compiling them up front to avoid per-call work.

🤖 Authored with Continuous Efficiency Agent

@ljharb ljharb force-pushed the continuous-efficiency/hoist-regex branch from 8d75b66 to fc80eae Compare October 16, 2025 23:23
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Thanks!

@ljharb ljharb changed the title hoist regex expressions for efficiency [Refactor] hoist regex expressions for efficiency Oct 16, 2025
@ljharb ljharb force-pushed the continuous-efficiency/hoist-regex branch 7 times, most recently from d66d585 to a5e28aa Compare October 20, 2025 05:39
@ljharb ljharb merged commit a5e28aa into browserify:main Oct 20, 2025
398 checks passed
ljharb added a commit that referenced this pull request Oct 20, 2025
 - [Refactor] hoist regex expressions for efficiency (#336)
 - [meta] Fix broken repository URL in package.json (#334)
 - [meta] add threat model
 - [meta] gitignore coverage output
 - [meta] add IRP
 - [Deps] update `is-core-module`
 - [actions] set proper permissions
 - [Tests] install npm 5 before npm 6 in node 7 on windows
 - [Dev Deps] update `@ljharb/eslint-config`, `array.prototype.map`
ljharb added a commit that referenced this pull request Oct 20, 2025
v1.22.11

 - [Refactor] hoist regex expressions for efficiency (#336)
 - [meta] Fix broken repository URL in package.json (#334)
 - [meta] add threat model
 - [meta] gitignore coverage output
 - [meta] add IRP
 - [Deps] update `is-core-module`
 - [actions] set proper permissions
 - [Tests] install npm 5 before npm 6 in node 7 on windows
 - [Dev Deps] update `@ljharb/eslint-config`, `array.prototype.map`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants