2

We recently upgraded from Scala version 2.11.7 to 2.12.1. After the upgrade we noticed an increase in compilation time of around 10 mins. Reverting back to the old version reduces the compile time for the same code.

Has there been any performance regression introduced as a part of this release ?

Thanks Shashi

Sashi
  • 135
  • 2
  • 11
  • 1
    What fraction of the total compile time is 10 minutes? – Bob Dalgleish Mar 17 '17 at 18:21
  • In general, compilation times for 2.11 and 2.12 should be about the same and your experience is not normal. I would suggest you begin by trying a nightly build of 2.12.2 ([instructions here](http://stackoverflow.com/questions/40622878/how-do-i-tell-sbt-to-use-a-nightly-build-of-scala-2-11-or-2-12/40622879#40622879)) to see if the problem has already been fixed. – Seth Tisue Mar 17 '17 at 18:25
  • @Bob, I would say an increase of around 30%. – Sashi Mar 20 '17 at 05:18
  • @SethTisue, It seems that there was a performance regression introduced in 2.12.0. https://www.scala-lang.org/news/2.12.0-M5 . Can this be the reason for slow compile time ? – Sashi Mar 20 '17 at 05:23
  • Hey @SethTisue, the instructions for the taking the nightly build talks about SBT. However I am using maven as a build tool. Any idea, how to tweak the maven to get the nightly builds ? – Sashi Mar 20 '17 at 06:08
  • Surely there must be, but I don't know Maven. That would make a good separate question. – Seth Tisue Mar 20 '17 at 13:24
  • As for the regression mentioned in the M5 release notes, that was fixed before the final. – Seth Tisue Mar 20 '17 at 13:25

0 Answers0