Large LargeIntegers performance

JArchibald at aol.com JArchibald at aol.com
Thu May 25 17:40:15 UTC 2000


Unbelievable! I was able to get the following result (out of many):

| a b p t s |
a _ 255.
b _ 1024 * 63.
t _ [ p _ (a raisedTo: b) ] timeToRun.
s _ p size.
Array with: t with: s  
    => (45509 64467 )

That's amazing. There does seem to be some optimizations made for powers of 2 
(they ran much faster), but these numbers are extraordinary.

Throw this example at one of your C bigots. Watch them melt.

Thank you, thank you, all is forgiven,
Jerry.





More information about the Squeak-dev mailing list