3 ms·
Sure, but Scala 2.12 replaces anonymous classes with Java 8 functional interfaces. Vast reduction in generated bytecode as a result, thus, not only faster compi
by virtualwhys 11y ago
Sure, but Scala 2.12 replaces anonymous classes with Java 8 functional interfaces. Vast reduction in generated bytecode as a result, thus, not only faster compile times but also perhaps better run time performance (though hotspot, miracle of engineering that it is, does a pretty good job of optimizing most anything you throw at it).
Saying that, Scala 2.12 will still be relatively slow compared to say, C, Go, Java and similar languages not high up on the abstraction ladder. The real compiler speed up will be coming with Dotty (Scala 3). Martin Odersky estimates that Dotty will be up to 4X faster than present day Scala.