Hi Michael,

I've profiled the Scala compiler for Bill Venners and have passed the 
information back. Scala compiler is slow because 1) it is single 
threaded. I would have thought that a language/runtime that was tuned 
for threading would have a multi-threaded compiler ;-)  2) the symbol 
table backed by a hashmap will resize several 100s of thousands of time 
for any application of any reasonable size. So, GC is a problem. To make 
the compile a bit faster 1) use a larger heap and 2) make sure you're 
using iCMS.

Regards,
Kirk

Michael Neale wrote:
> Thanks Miguel.
>
> I do often feel that the scala compiler is a tad slow (more that javac
> and JDT are fast) - have other people noticed and do you know what is
> being done about it? I appreciate the cleverness of the scala
> compiler, but if the downside is slower turn around for me, I am less
> excited about its innovations :(
>
> On Jan 3, 2:17 am, Miguel Garcia <[email protected]> wrote:
>   
>> Hi,
>>
>> After two months of build-up, I want to bring to your attention
>>
>>                The Scala Compiler Corner
>>
>>      http://www.sts.tu-harburg.de/people/mi.garcia/ScalaCompilerCorner/
>>
>> a growing collection of resources on how the Scala compiler works (and
>> how it can be hacked).
>>
>> Besides write-ups on the implementation of built-in compilation
>> phases, you'll find resources to write your own compiler plugins to
>> perform additional or alternative processing on the syntax trees.
>>
>> Contributions are very welcome!
>>
>> Miguel Garciahttp://www.sts.tu-harburg.de/people/mi.garcia/
>>     
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/javaposse?hl=en.
>
>
>
>   

--

You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.


Reply via email to