[q]squeak is too slow?
Yoshiki.Ohshima at acm.org
Tue Dec 7 19:29:05 UTC 2004
> 1 to: 30 do: [ :j|
> 1 to: 30 do: [:k|
> 1 to: 30 do: [ :l|
> 1 to: 30 do: [:m|
> Something :-)
The number of times that "Something :-)" gets executed is 810,000,
or less than 1 mega times. Unless "Something :-)" is something, it
shouldn't take anything like that.
> It takes 50 seconds to finish this loop.
> Compare to C ( 0.1 second?), I think it is too slow.
The factor of 500? is too high, usually. Even a computation with
bare Float objects performs better. If you can put your data in
FloatArray, it'll perform much faster.
More information about the Squeak-dev