Skip to content

src: optimize regex in node_task_runner#59496

Open
isaacl wants to merge 1 commit intonodejs:mainfrom
isaacl:constRegex
Open

src: optimize regex in node_task_runner#59496
isaacl wants to merge 1 commit intonodejs:mainfrom
isaacl:constRegex

Conversation

@isaacl
Copy link
Contributor

@isaacl isaacl commented Aug 16, 2025

Declare regex as const so it does is not constructed
multiple times (EscapeShell may run multiple times).

Declare regex as const so it does is not constructed
multiple times (EscapeShell may run multiple times).
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Aug 16, 2025
@isaacl
Copy link
Contributor Author

isaacl commented Aug 18, 2025

actually, looking at this more, two of these replacements don't use regex features, they simply need to replace all occurrences... but whatever I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants