Skip to content

tools: optimize wildcard execution in tools/test.py#60266

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:opt-wildcard
Oct 18, 2025
Merged

tools: optimize wildcard execution in tools/test.py#60266
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:opt-wildcard

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

Previously for each matching test, it would execute multiple node -p commands to decide the configurations of the executable. That means if there are 100 tests matched, it will run the Node.js executable 4*100 times to retrieve the same configurations repeatedly. This changes the loop order so that it only execute these commands once and reuse the results for all matching tests.

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

Labels

test Issues and PRs related to the tests. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants