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
pathologically slow compilation time with -optimize and named/default arguments #7524
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7524?orig=1 |
@SethTisue said:
so this may date back to scala/scala@28f747a |
@paulp said: |
@paulp said: % time scalac3 -optimise a.scala
64.175 real, 73.388 user, 0.433 sys
% time qscalac -optimise a.scala
10.709 real, 20.147 user, 0.491 sys |
@SethTisue said: |
@SethTisue said: |
we can reopen if someone can reproduce this with the new optimizer in 2.12 |
With -optimize on, this code takes 30 seconds to compile, compared to 5 seconds without the optimizer. If you double the number of repetitions in the body of O, it takes several minutes. Something O(n^2) or worse must be happening.
Scala 2.9.2, 2.10.1, 2.10.2-RC1, and 2.11.0.M2 are all equally affected.
I encountered this bug in real code, with a large literal Map containing a lot (about 400) case class instances.
The text was updated successfully, but these errors were encountered: