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

VRMLLoader: Remove exponential backtracking in string regex. #23024

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

gero3
Copy link
Contributor

@gero3 gero3 commented Dec 14, 2021

Description

The regex was looping twice over the string due to the + inside the * block.
Now it only loops in the * block which is easier for a regex engine to handle.
This changes nothing qua results but is more performant.

@Mugen87 Mugen87 changed the title Remove exponential backtracking in string regex VRMLLoader: Remove exponential backtracking in string regex. Dec 14, 2021
@Mugen87 Mugen87 added this to the r136 milestone Dec 14, 2021
@Mugen87 Mugen87 merged commit dc118d4 into mrdoob:dev Dec 14, 2021
gero3 added a commit to gero3/three.js that referenced this pull request Dec 14, 2021
@mrdoob
Copy link
Owner

mrdoob commented Dec 14, 2021

Thanks!

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.

3 participants