Log in

No account? Create an account
Who, me? [userpic]

Scala compilation is too slow

January 18th, 2011 (12:22 pm)

I wanted to try out Scala (mostly to have a real programming language on Android), but I've run into a snag: the compiler is much too slow. I was OK with Scala 2.7.x on my desktop at work (4-core 3GHz Woodcrest—a Xeon version of Core 2), but 2.8.x on my laptop (2-core 1.6GHz Core Duo) was insanely slow--105 seconds to compile a 6-line program. (Four lines of content, two lines of closing brackets.) I tried dropping the laptop to 2.7.x, and that gets compilation time down to 18s; but even that is just too slow to put up with.

(I wanted to try it on my home desktop, but its boot drive has failed again. Not that it'd matter, really; nearly all my personal hacking time is on the train, which means the laptop.)


Posted by: Justin du Coeur (jducoeur)
Posted at: January 19th, 2011 01:34 pm (UTC)

Huh -- surprising that I haven't heard about this on scala-debate: a slowdown of that extent, I would expect, would have caused massive complaint. Indeed, this is generally bizarre: I mean, Scala gets used as an interactive scripting language, so most people can't possibly be seeing times like that. Very weird...

1 Read Comments