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
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 goran@krampe.se:
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
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
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
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:
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
squeak-dev@lists.squeakfoundation.org