Skip to content

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