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?
-
-
@propensive scalac can be a bit thick at times. I haven't checked this particular case though. -
@ijuma I'll let it off, just this once. On balance it's quite smart... ;)
End of conversation
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.