[q]squeak is too slow?
Andreas Raab
andreas.raab at gmx.de
Tue Dec 7 20:03:31 UTC 2004
Given that
[
1 to: 30 do:[:j| 1 to: 30 do:[:k| 1 to: 30 do:[:l| 1 to: 30 do:[:m|
"nothing" ]]]]
] timeToRun
Takes about 50ms it's clearly not the loop which slows your computation down
but that unspecified "something". So it asking the question of how to speed
up the loop is pointless as it only contributes .1% to the entire
computation. You would be better advised to repost your question and include
what it actually is you are trying to compute.
Cheers,
- Andreas
----- Original Message -----
From: "ÀÌÃá¼®" <stonecold at jupiter.kaist.ac.kr>
To: "'The general-purpose Squeak developers list'"
<squeak-dev at lists.squeakfoundation.org>
Sent: Tuesday, December 07, 2004 8:05 AM
Subject: [q]squeak is too slow?
> Hi all.
>
> I tried to calculate something.
> For Example,
>
> 1 to: 30 do: [ :j|
> 1 to: 30 do: [:k|
> 1 to: 30 do: [ :l|
> 1 to: 30 do: [:m|
> Something :-)
> ]
> ]
> ]
> ]
>
> Like above.
>
> It takes 50 seconds to finish this loop.
> Compare to C ( 0.1 second?), I think it is too slow.
>
> Can I speed up?
>
> Thanks in advance.
>
>
More information about the Squeak-dev
mailing list
|