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

Tests: Cache results for exp backtracking check #3356

Merged
merged 1 commit into from Mar 13, 2022

Conversation

RunDevelopment
Copy link
Member

When fixing #3355, the CI failed because the exponential backtracking check takes too long. That's because the new generated patterns I added are very long and repetitive.

This PR adds a conservative cache around the exp backtracking checks. The speedup for the cache is enough for the tests to pass.

@github-actions
Copy link

No JS Changes

Generated by 🚫 dangerJS against 629050e

@RunDevelopment RunDevelopment merged commit ead22e1 into PrismJS:master Mar 13, 2022
@RunDevelopment RunDevelopment deleted the tests-fast-exp-check branch March 13, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant