-
Notifications
You must be signed in to change notification settings - Fork 92
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
BasicTransformer has exponential complexity #58
Comments
biswanaths
added a commit
that referenced
this issue
Jul 29, 2015
Fix #58 (SI-4528) BasicTransformer has no longer exponential complexity
Hi, Is there any prospect this fix being released soon, cos my team is currently using the patch to get around the exponential complexity problem? Thanks a lot. |
Hey, sorry that your team has to use patch for this issue. I will update when we can do a release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please see
https://issues.scala-lang.org/browse/SI-3689
https://issues.scala-lang.org/browse/SI-4528
It seems BasicTransformer has exponential complexity on the nesting level of the XML being processed. This is due to this method:
Each modified node is transformed twice: once at the span, and again at the if/else. So, for , with c being modified, node a gets transformed twice, node b gets transformed four times (twice for each time a is transformed), and node c gets transformed eight times.
The text was updated successfully, but these errors were encountered: