Skip to content

Conversation

@sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Aug 29, 2025

Description

This value is only used by vm, but it is evaluated for every test file. It takes ~8ms to iterate over it because some properties are getters (like FormData that takes 8ms)

@netlify
Copy link

netlify bot commented Aug 29, 2025

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 206dfe2
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/68b1a5d2f7234800084e52a7
😎 Deploy Preview https://deploy-preview-8506--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va sheremet-va changed the title perf: iterate globals with a for-loop perf: delay populating node-globals Aug 29, 2025
@sheremet-va sheremet-va merged commit 41cbc53 into vitest-dev:main Aug 29, 2025
12 of 14 checks passed
@sheremet-va sheremet-va deleted the perf/iterate-globals branch August 29, 2025 13:33
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.

1 participant