This page is no longer maintained — Please continue to the home page at www.scala-lang.org

@specialized stats?

4 replies
Tim Perrett 2
Joined: 2009-04-06,
User offline. Last seen 42 years 45 weeks ago.

Hey all,

I was just wondering if there were any performance metrics around
@specilized for certain operations that people were willing to share?

Cheers, Tim

Chris Marshall
Joined: 2009-06-17,
User offline. Last seen 44 weeks 3 days ago.
RE: @specialized stats?
I think Rex posted some a while back. I can only find this for now but I'm sure he posted a more detailed breakdown:
http://scala-programming-language.1934581.n4.nabble.com/Try-out-specialized-Function1-Function2-in-2-8-0-RC1-td1957121.html

> Date: Tue, 12 Oct 2010 14:30:12 +0100
> Subject: [scala-user] @specialized stats?
> From: tperrett@googlemail.com
> To: scala-user@listes.epfl.ch
>
> Hey all,
>
> I was just wondering if there were any performance metrics around
> @specilized for certain operations that people were willing to share?
>
> Cheers, Tim
ichoran
Joined: 2009-08-14,
User offline. Last seen 2 years 3 weeks ago.
Re: @specialized stats?
Well, you can guess how much specialization helps by looking at

http://scala-programming-language.1934581.n4.nabble.com/Super-slow-for-comprehension-when-emulating-basic-for-loop-about-200k-iterations-second-td2341027i40.html#a2341383

among other things.  At the time of that posting, Range was specialized and Array for was not, as I recall.

But specialization has been improving and changing over the last few months, so I don't have a current set of benchmarks; I tend to add it and test on a case-by-case basis in my own code.

  --Rex

On Tue, Oct 12, 2010 at 10:14 AM, christopher marshall <oxbow_lakes@hotmail.com> wrote:
I think Rex posted some a while back. I can only find this for now but I'm sure he posted a more detailed breakdown:
http://scala-programming-language.1934581.n4.nabble.com/Try-out-specialized-Function1-Function2-in-2-8-0-RC1-td1957121.html

> Date: Tue, 12 Oct 2010 14:30:12 +0100
> Subject: [scala-user] @specialized stats?
> From: tperrett@googlemail.com
> To: scala-user@listes.epfl.ch
>
> Hey all,
>
> I was just wondering if there were any performance metrics around
> @specilized for certain operations that people were willing to share?
>
> Cheers, Tim

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: @specialized stats?

On Tue, Oct 12, 2010 at 02:30:12PM +0100, Tim Perrett wrote:
> I was just wondering if there were any performance metrics around
> @specilized for certain operations that people were willing to share?

There are some dramatic numbers of interest in my opening message here:

http://www.scala-lang.org/node/7664

Tim Perrett 2
Joined: 2009-04-06,
User offline. Last seen 42 years 45 weeks ago.
Re: @specialized stats?

Thanks Paul - interesting reading.

On 12 October 2010 17:47, Paul Phillips wrote:
> On Tue, Oct 12, 2010 at 02:30:12PM +0100, Tim Perrett wrote:
>> I was just wondering if there were any performance metrics around
>> @specilized for certain operations that people were willing to share?
>
> There are some dramatic numbers of interest in my opening message here:
>
>  http://www.scala-lang.org/node/7664
>
> --
> Paul Phillips      | We act as though comfort and luxury were the chief
> Analgesic          | requirements of life, when all that we need to make us
> Empiricist         | really happy is something to be enthusiastic about.
> ha! spill, pupil   |     -- Charles Kingsley
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland