When running timing tests for the first JVM Concurrency article I was surprised to see the original Scala code taking much longer to execute than the Java code - more than twice as long. I experimented a bit, and found that the performance issue came down to the structure of the loops in the Scala editDistance method...[Read More]
24 Mar · Mon 2014
Why is using for/foreach on a Range slow?
Posted by dsosnoski @ 07:34 AM UTC [ Comments  ]