What Scala structures can be used more efficiently than in Java to increase execution speed? I donโt know if this is possible, but to remove my doubts :)
thank
scala @ specialized annotation can generate several versions of a class that are finely tuned with certain primitive types. You can write all this in Java, but you probably don't want this.
2.9, . " " . Java .
, Scala , Java, , .
, @specialized . , Java fastutil Apache Primitives . Scala @specialized :
class MyLinkedList[@specialized T] (args: T*) { // whatever it does }
, . 2.9 , , , Scala Java (fold, foreach ..). . ScalaDays .
, Java-, Scala , , HotSpot.
Also stay tuned for an Iulian theme , which is due out soon and will provide much more information about the Scala optimization theme.