Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: only build regexp once for detecting expectations #608

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

ghusse
Copy link
Contributor

@ghusse ghusse commented Dec 19, 2024

For performance reason, only parse patterns and create RegExp once instead of doing it for each tested node.

@ghusse ghusse changed the title perf: only build regexp ones for detecting expectations perf: only build regexp once for detecting expectations Dec 19, 2024
Copy link
Member

@veritem veritem left a comment

Choose a reason for hiding this comment

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

thanks

@veritem veritem merged commit 448650c into vitest-dev:main Dec 19, 2024
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