Better integer performance possible?

Michael Klein Mklein at nts.net
Mon Oct 25 18:47:09 UTC 1999


Most Smalltalks have primitive implementations for large integer
arithmetic.
Squeak doesn't.

-- Mike Klein

On Monday, October 25, 1999 11:20 AM, Stephan Rudlof
[SMTP:stephan.rudlof at ipk.fhg.de] wrote:
> Dear Squeakers!
> 
> The integer performance of Squeak is poor compared with other Smalltalks,
> especially for big ints (~ factor 500) and not so much for small ones (~
> factor 3).
> 
> What's the reason? Does anybody know if improvements are possible?
> 
> WinNT Dolphin Smalltalk Version 2.1 Patch Level 2:
> 
> Time millisecondsToRun: [2000 factorial]. "big ints"
>  76 75 76
> Time millisecondsToRun: [1000 timesRepeat: [12 factorial]]. "small ints"
>  11 11 10
> 
> WinNT Squeak 2.5:
> Time millisecondsToRun: [2000 factorial]. "big ints"
>  34520 34520 35080
> Time millisecondsToRun: [1000 timesRepeat: [12 factorial]]. "small ints"
>  30 30 30
> 
> Stephan
> 
> sr (stephan.rudlof at ipk.fhg.de)
>    "Genius doesn't work on an assembly line basis.
>     You can't simply say, 'Today I will be brilliant.'"
>     -- Kirk, "The Ultimate Computer", stardate 4731.3
> 





More information about the Squeak-dev mailing list