« Return to Thread: [scala-tools] Compiler books

Re: [scala-tools] Compiler books

by Erkki Lindpere-2 :: Rate this Message:

Reply to Author | View in Thread

Of course, I should have thought of this: the optimizer mustn't remove
side effects. Anyway, even with escape analysis turned on, I'm still
getting bigger improvements from manually inlining (doing scalar
replacement on) the vector operations.

Miles Sabin wrote:

> On Sun, Jun 28, 2009 at 11:54 PM, Erkki Lindpere<erkki@...> wrote:
>  
>> Also, I'm counting Vector2 allocations (in a companion object field) and
>> turning on -XX:+DoEscapeAnalysis does not remove a single allocation.
>>    
>
> As in you have the ctor increment a companion object field?
> -XX:+DoEscapeAnalysis shouldn't have any effect on that count whether
> it manages to inline objects into the stack or not.
>
> Cheers,
>
>
> Miles
>
>  

 « Return to Thread: [scala-tools] Compiler books