3 ms·
Maybe I'm missing something, but I'm amazed to see Scala beating out Java.
by wtracy 15y ago
Maybe I'm missing something, but I'm amazed to see Scala beating out Java.
- gaius 15y agoWhy? Remember that at this point in history, Java-the-language and Java-the-VM are related in name only.
- jbooth 15y agoFrom a performance perspective, the VM is what dominates and Java operates closer to the VM assumptions about what it's going to run. If you read the paper, you'll note that the Scala author significantly changed the structure of the algorithm to conform with the way Scala does things (recursion, etc). So it's sort of an apples-to-oranges comparison as far as Scala's concerned, too bad they couldn't write ugly Scala code that would give a better comparison.
- jshen 15y agoRegarding the java version, "Note that Jeremy deliberately refused to optimize the code further, many of the C++ optimizations would apply to the Java version as well"