HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 137797 thumbnail
User 232540 avatar

By eishay
via eishay.blogspot.com
Published: Dec 01 2008 / 10:19

Adding Scala to the serialization benchmarking parade along with Java, Stax, Thrift and Protobuf. Scala is actually closer to Java, actually as for the serialization engine it IS java since it compiles to java classes. Since you could use Scala in a Java environment like a yet another Jar file then it would be good to check out the serialization cost, especially if you're using RMI, remote Spring or other protocol based on Java serialization. The surprising part of the Scala compare is that Scala is actually faster in creating objects. To be fair, I've created the exact same objects in Java and Scala and created all the Scala objects from Java code! Creating Scala objects from Scala code might be even faster. In the chart below size is the size of the object's serialized byte array.
  • 7
  • 3
  • 3631
  • 17

Comments

Add your comment
User 179375 avatar

Ricky Clarkson replied ago:

0 votes Vote down Vote up Reply

Scala is not faster than Java. It generates similar bytecode to Java, often slightly slower. Flawed benchmark.

User 272422 avatar

htowninsomniac replied ago:

0 votes Vote down Vote up Reply

Badly written. A little more "than", a little less "actually".

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (3)