BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 199961 thumbnail
User 410289 avatar

By CodeJustin
via eishay.com
Published: Jul 06 2009 / 09:54

Following Nick's post I came up to check the numbers and investigate a possible improvement using Scala 2.8 @specialized annotation. Final numbers are at the end of the post. I added few changes: First I thought it would be better if both Scala and Java would sort the same size of array ;-) In Nick's example Java sorted 10,000 elements and Scala sorted 100,000. The other was to do few iterations int he same JVM run to let JIT kick in. So now the Scala code looks like this:
  • 6
  • 0
  • 1119
  • 0

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 (6)



Voters Against This Link (0)