@propensive It's probably boxing the Int in the slower case.
var x = 0; for(i <- 1 to 100000000) /* x += */ i Uncommenting makes this about 4x faster. More expensive to discard a result than add it?!
-
-
-
@ijuma Sounds like a useful thing to do right before it gets thrown away! ;) Shouldn't DCE pick this up? - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.