Some optimization for fun

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Some optimization for fun

Göran Krampe
Hi all!

I stumbled over a guy looking at Squeak performance and decided to see if
I could optimize his particular problem. I ended up writing a highly
optimized version of #printString in class SmallInteger.

Don't know if it is of general interest but it does give a speedup of
sending #printString to SmallIntegers around 4x I think.

See my comment here:

http://curiousprogrammer.wordpress.com/2007/04/11/is-squeak-smalltalk-slow/

regards, Göran


Reply | Threaded
Open this post in threaded view
|

Re: Some optimization for fun

Damien Cassou-3
Hi Göran,

it's great. Would you please write tests and send a mail so that your
enhancement get a chance to be included?

2007/5/25, Göran Krampe <[hidden email]>:

> Hi all!
>
> I stumbled over a guy looking at Squeak performance and decided to see if
> I could optimize his particular problem. I ended up writing a highly
> optimized version of #printString in class SmallInteger.
>
> Don't know if it is of general interest but it does give a speedup of
> sending #printString to SmallIntegers around 4x I think.
>
> See my comment here:
>
> http://curiousprogrammer.wordpress.com/2007/04/11/is-squeak-smalltalk-slow/
>
> regards, Göran
>
>
>

--
Damien Cassou


Reply | Threaded
Open this post in threaded view
|

Re: Some optimization for fun

Göran Krampe
In reply to this post by Göran Krampe
Hi again!

Ok, ended up tweaking a bit more and added my last version on Mantis:

http://bugs.squeak.org/view.php?id=6512

regards, Göran


Reply | Threaded
Open this post in threaded view
|

Re: Some optimization for fun

Ken Causey-3
Thanks, just what I was about to ask for!

Ken

On Fri, 2007-05-25 at 15:16 +0200, Göran Krampe wrote:

> Hi again!
>
> Ok, ended up tweaking a bit more and added my last version on Mantis:
>
> http://bugs.squeak.org/view.php?id=6512
>
> regards, Göran
>
>
>



signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Some optimization for fun

K. K. Subramaniam
In reply to this post by Göran Krampe
On Friday 25 May 2007 6:46 pm, Göran Krampe wrote:
> Hi again!
>
> Ok, ended up tweaking a bit more and added my last version on Mantis:
>
> http://bugs.squeak.org/view.php?id=6512

Time millisecondsToRun: [1 to: 20000 do: [:i | m := i printString]]

run in 212ms (3.9-7067) and 37 ms (with 2.cs)

Great work! .. Subbu